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

PixelFormatConverter.PaletteType Property

Gets/sets a value that specifies a palette used when performing conversion to indexed pixel format.

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

Syntax

Visual Basic
Public Property PaletteType As ColorPaletteType
C#
public ColorPaletteType PaletteType { get; set; }

Property Value

ColorPaletteType value that specifies a palette to use when DestinationPixelFormat is indexed.

Remarks

The table below classifies palette types supported by Graphics Mill for .NET.

Palette kind Description
Predefined palettes These palettes always have fixed values. If you specify entries count less than these palettes support, algorithm will automatically select the most frequent colors from these palettes. Graphics Mill for .NET supports several predefined palettes represented with the following ColorPaletteType enumeration members: WebSafe, Windows, Mac, GrayScale, and Bicolor (black-and-white palette for 1-bit images).
Adaptive palette Colors of the adaptive palette are fully dependent from the image which is being converted. Algorithm searches for most frequent colors in the source images and builds the palette from these colors. This palette type is represented with Adaptive member of the ColorPaletteType enumeration.
Custom palette This palette is provided by user. It can be taken from another image, or built manually. You must define it using CustomPalette property. This palette type is represented with Custom member of the ColorPaletteType enumeration.

See Also

Reference