ImageEn, unit iexColorPalette |
|
TIEColorPalette.SelectNearestColor
Declaration
procedure SelectNearestColor(v: TColor);
Description
Selects the closest color in the palette to that specified.
Unlike
SelectedColor a color will always be selected.
Note: TIEColorPalette does not support multiple selection
// Select Blue or the color closest to it
ColorPalette1.SelectNearestColor( clBlue );
See Also
◼SelectedColor
◼SelectedIndex