IColorPalette.GetNearestColorIndex

GetNearestColorIndex(int)

Gets the index of the nearest 32-bit ARGB color.

public int GetNearestColorIndex(int argb32Color)
ParameterTypeDescription
argb32ColorInt32The 32-bit ARGB color.

Return Value

The index of the nearest color.

See Also


GetNearestColorIndex(Color)

Gets the index of the nearest color.

public int GetNearestColorIndex(Color color)
ParameterTypeDescription
colorColorThe color.

Return Value

The index of the nearest color.

See Also