Click or drag to resize

PaletteGetClosestPaletteIndex Method (Color, Boolean)

Returns the palette index that best matches a specified color, returning a value if there was an exact match.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public byte GetClosestPaletteIndex(
	Color color,
	ref bool exact
)

Parameters

color
Type: System.DrawingColor
The color to look up in the palette.
exact
Type: SystemBoolean
This value is set to true if there is an exact match, otherwise false.

Return Value

Type: Byte
See Also