Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.

ColorPalette.Count Property

Returns a number of colors in the palette.

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


public int Count { get; }

Property Value

The number of colors in the palette.


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