Applies color reduction to indexed pixel formats.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic

Public Sub ConvertToIndexed ( _
	bpp As Integer, _
	paletteType As ColorPaletteType, _
	customPalette As ColorPalette _
)

C#

public void ConvertToIndexed(
	int bpp,
	ColorPaletteType paletteType,
	ColorPalette customPalette
)

Parameters

bpp

Type: System..::.Int32

Value specifying necessary bits per pixel. Valid values are 1, 4, and 8.
paletteType

Type: Aurigma.GraphicsMill..::.ColorPaletteType

ColorPaletteType value specifying how to generate palette.
customPalette

Type: Aurigma.GraphicsMill..::.ColorPalette

ColorPalette class instance which is used when paletteType is Custom.

Remarks

If you use this overload, FloydSteinberg dithering algorithm will be always used.