Method GetNearestColorIndex
GetNearestColorIndex(int)
Gets the index of the nearest 32-bit ARGB color.
int GetNearestColorIndex(int argb32Color)
Parameters
argb32Color
intThe 32-bit ARGB color.
Returns
- int
The index of the nearest color.
GetNearestColorIndex(Color)
Gets the index of the nearest color.
int GetNearestColorIndex(Color color)
Parameters
color
ColorThe color.
Returns
- int
The index of the nearest color.