[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GifFrame.ToGcBitmap

ToGcBitmap Method

ToGcBitmap()

Gets the frame image as a GcBitmap.

Many GIF files use frames with transparent pixels where the previous frame is partly visible. If you read multiple GIF frames you can improve the performance dramatically by reading frames into the same GcBitmap and passing index of the previous frame in the additional contentFrameIndex parameter.

Declaration
public GcBitmap ToGcBitmap()
Public Function ToGcBitmap() As GcBitmap
Returns
Type Description
GcBitmap

ToGcBitmap(GcBitmap, int)

Reads the frame image into an existing GcBitmap.

Declaration
public void ToGcBitmap(GcBitmap bmp, int contentFrameIndex = -1)
Public Sub ToGcBitmap(bmp As GcBitmap, Optional contentFrameIndex As Integer = -1)
Parameters
Type Name Description
GcBitmap bmp

The source and target GcBitmap object.

int contentFrameIndex

Index of a GIF frame rendered to GcBitmap that is passed in the bmp parameter, if any.