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

GifFrame.ColorKeyIndex Property

Returns an index of transparent palette entry.

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

Syntax

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

Property Value

Index of the transparent palette entry. If the frame has no transparent areas, -1 is returned.

Remarks

This value is read from GIF file rather than obtained from the bitmap. It means that if you modify the bitmap with SetBitmap(Bitmap) method, it will still return the value stored in the file this frame is associated with. Therefore this property has limited usage.

This property is not used when you pass this frame into GifWriter. Instead of that writer analyzes the palette of the image stored in this frame and initalizes this value in the result GIF file with it.

See Also

Reference