Click or drag to resize

PaletteGetClosestPaletteIndex Method (Color)

Returns the palette index that best matches a specified color.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntax
public byte GetClosestPaletteIndex(
	Color color
)

Parameters

color
Type: System.DrawingColor
The color to look up in the palette.

Return Value

Type: Byte
See Also