IDLgrPalette::NearestColor
Syntax | Arguments | Keywords | Version History
The IDLgrPalette::NearestColor function method returns the index of the color in the palette that best matches the given RGB values.
Syntax
Result = Obj->[IDLgrPalette::]NearestColor(Red, Green, Blue)
Return Value
Returns the index of the color in the palette that best matches the given RGB values.
Arguments
Red
The red value of the color that should be matched. This value should be within the range of 0 ≤ Value ≤ 255.
Green
The green value of the color that should be matched. This value should be within the range of 0 ≤ Value ≤ 255.
Blue
The blue value of the color that should be matched. This value should be within the range of 0 ≤ Value ≤ 255.
Keywords
None
Version History