[]
Represents a single frame in the GIF file.
public class GifFrame
Gets the index of a frame used as the base for the current frame, -1 if the current frame doesn't depend on previous frames.
public int BasedOnFrame { get; }
public int Bottom { get; }
Gets the number of hundredths (1/100) of a second to wait before continuing.
If the value is negative, the delay time is not specified.
public int DelayTime { get; }
Gets the way in which the GIF frame has to be treated after being displayed.
public GifDisposalMethod DisposalMethod { get; }
Gets the index of the frame in the associated GIF file.
public int FrameIndex { get; }
Gets a value indicating if the frame uses colors from the Local Color Table.
public bool HasLocalPalette { get; }
Gets the height of the frame image in pixels.
public int Height { get; }
Gets the x-coordinate, in pixels, of the left edge of the frame image, with respect to the left edge of the Logical Screen.
public int Left { get; }
Gets a value indicating if transparent pixels don't occur in the frame data.
public bool Opaque { get; }
Gets the associated GcGifReader.
public GcGifReader Reader { get; }
public int Right { get; }
Gets the y-coordinate, in pixels, of the top edge of the frame image with respect to the top edge of the Logical Screen.
public int Top { get; }
Gets a value indicating whether or not user input is expected before continuing.
When a DelayTime is not 0 and the UserInput flag is set, processing will continue when user input is received or when the delay time expires, whichever occurs first.
public bool UserInput { get; }
Gets the width of the frame image in pixels.
public int Width { get; }
Returns a palette with sorted opaque colors in 32-bit ARGB format retrieved from the Local Color Table.
public uint[] GetLocalPalette()
Gets the frame image as a Indexed8bppBitmap.
public Indexed8bppBitmap ReadAsIndexed8bppBitmap()
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.
public GcBitmap ToGcBitmap()
Reads the frame image into an existing GcBitmap.
public void ToGcBitmap(GcBitmap bmp, int contentFrameIndex = -1)
bmp
GcBitmapThe source and target GcBitmap object.
contentFrameIndex
intIndex of a GIF frame rendered to GcBitmap that is passed in the bmp parameter, if any.
Creates an Image object for the frame.
public Image ToImage(ImageBinding binding = ImageBinding.FilePath)
binding
ImageBindingSpecifies how the image data is attached to the Image object.