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

ColorPalette.Count Property

Returns a number of colors in the palette.

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

Syntax

Visual Basic
Public ReadOnly Property Count As Integer
C#
public int Count { get; }

Property Value

Palette entries count.

Remarks

A number of colors in palette depends on the color depth of the image where it is used. 1-bit bitmaps can have only 2 colors, 4-bit bitmaps - 16 colors, 8-bit bitmaps - 256 colors. 8 bit is a maximum bit depth for indexed images, so this property never exceed 256.

See Also

Reference