NearestPaletteIndexColor
MethodNearestPaletteIndexColor (Method)
This method returns the index to the current color palette with a RGB color which matches or looks like the specific RGB color
Syntax:
Function NearestPaletteIndexColor(RGBColor As Integer) As Short
The NearestPaletteIndexColor method syntax consists of the following:
Parameter |
Data Type |
Description |
RGBColor |
Integer |
The RGB color to be found |
Return value:
Short - The nearest palette color index