This documentation is for the old version. Go to the latest Graphics Mill docs

ColorManagementProvider.PaletteEntryCount Property

Gets/sets the maximum number of colors in palette that should be used when performing conversion to an indexed pixel format.

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

Syntax

Visual Basic
Public Property PaletteEntryCount As Integer
C#
public int PaletteEntryCount { get; set; }

Property Value

A value that specifies the maximum number of entries in palette used when performing conversion to an indexed pixel format. If this value is 0, the algorithm automatically uses the maximum possible value for the target pixel format (see the Remarks section).

Remarks

When DestinationPixelFormat is Format8bppIndexed, this value should be equal or less 256. For the Format4bppIndexed pixel format, 16 or less colors can be used. For Format1bppIndexed, only 2 colors can be specified.

If you specify more colors than the palette supports, an exception will be raised.

See Also

Reference