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