API Reference
Class
GifReader
Decodes GIF images to RGBA buffers and animation frames.
Inheritance
- Object
- GifReader
Methods
public static GifAnimationFrame[] DecodeAnimationCanvasFrames(ReadOnlySpan<Byte> gif, out Int32 canvasWidth, out Int32 canvasHeight, out GifAnimationOptions options) #Returns:
GifAnimationFrame[]Decodes GIF animation frames composited onto the canvas.
Parameters
- gif System.ReadOnlySpan{System.Byte}
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Gif.GifAnimationOptions@
public static GifAnimationFrame[] DecodeAnimationFrames(ReadOnlySpan<Byte> gif, out Int32 canvasWidth, out Int32 canvasHeight, out GifAnimationOptions options) #Returns:
GifAnimationFrame[]Decodes GIF animation frames (frame rectangles only).
Parameters
- gif System.ReadOnlySpan{System.Byte}
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Gif.GifAnimationOptions@
public static Byte[] DecodeRgba32(ReadOnlySpan<Byte> gif, out Int32 width, out Int32 height) #Returns:
Byte[]Decodes a GIF image to an RGBA buffer.
Parameters
- gif System.ReadOnlySpan{System.Byte}
- width System.Int32@
- height System.Int32@
public static Boolean TryDecodeAnimationCanvasFrames(ReadOnlySpan<Byte> gif, out GifAnimationFrame[] frames, out Int32 canvasWidth, out Int32 canvasHeight, out GifAnimationOptions options) #Returns:
BooleanAttempts to decode GIF animation frames composited onto the canvas.
Parameters
- gif System.ReadOnlySpan{System.Byte}
- frames CodeGlyphX.Rendering.Gif.GifAnimationFrame[]@
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Gif.GifAnimationOptions@
public static Boolean TryDecodeAnimationFrames(ReadOnlySpan<Byte> gif, out GifAnimationFrame[] frames, out Int32 canvasWidth, out Int32 canvasHeight, out GifAnimationOptions options) #Returns:
BooleanAttempts to decode GIF animation frames (frame rectangles only).
Parameters
- gif System.ReadOnlySpan{System.Byte}
- frames CodeGlyphX.Rendering.Gif.GifAnimationFrame[]@
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Gif.GifAnimationOptions@