This property refers to the number of palette colors for the image set in the Layer(Index).Image property. The index can range from 0 to 99.

[Visual Basic] Public ReadOnly Property PaletteCount As Integer
[C#] public int PaletteCount {get;}

Property Value

The number of palette colors for the image.

This property value is valid when the BitCount property is less than 8, otherwise 0 is returned.

Explanation

This property refers to the number of palette colors for the image set in the Layer(Index).Image property.

After setting the Layer(Index).Image property, the value of this property is automatically set.

This property is not valid for vector images.

See Also

ImageKit.Layer Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation