TIvoryPalette::GetNearestPaletteIndex

Returns the nearest color in the palette.

int __fastcall GetNearestPaletteIndex(TColor c);

Description

GetNearestPaletteIndex retrieves the index for the color in the palette that most closely matches the specified color.

Back to TIvoryPalette