API Reference
Class
WebpReader
Minimal WebP container parsing plus managed decode (VP8/VP8L stills).
Inheritance
- Object
- WebpReader
Methods
public static WebpAnimationFrame[] DecodeAnimationCanvasFrames(ReadOnlySpan<Byte> data, out Int32 canvasWidth, out Int32 canvasHeight, out WebpAnimationOptions options) #Returns:
WebpAnimationFrame[]Decodes animated WebP frames composited onto the full canvas (managed).
Parameters
- data System.ReadOnlySpan{System.Byte}
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions@
public static WebpAnimationFrame[] DecodeAnimationFrames(ReadOnlySpan<Byte> data, out Int32 canvasWidth, out Int32 canvasHeight, out WebpAnimationOptions options) #Returns:
WebpAnimationFrame[]Decodes animated WebP frames into RGBA32 buffers (managed).
Parameters
- data System.ReadOnlySpan{System.Byte}
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions@
public static Byte[] DecodeRgba32(ReadOnlySpan<Byte> data, out Int32 width, out Int32 height) #Returns:
Byte[]Decodes a WebP image to RGBA32 using the managed VP8/VP8L decoder.
Parameters
- data System.ReadOnlySpan{System.Byte}
- width System.Int32@
- height System.Int32@
public static Boolean IsWebp(ReadOnlySpan<Byte> data) #Returns:
BooleanChecks whether the buffer looks like a WebP RIFF container.
Parameters
- data System.ReadOnlySpan{System.Byte}
public static Boolean TryDecodeAnimationCanvasFrames(ReadOnlySpan<Byte> data, out WebpAnimationFrame[] frames, out Int32 canvasWidth, out Int32 canvasHeight, out WebpAnimationOptions options) #Returns:
BooleanAttempts to decode animated WebP frames composited onto the full canvas (managed).
Parameters
- data System.ReadOnlySpan{System.Byte}
- frames CodeGlyphX.Rendering.Webp.WebpAnimationFrame[]@
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions@
public static Boolean TryDecodeAnimationFrames(ReadOnlySpan<Byte> data, out WebpAnimationFrame[] frames, out Int32 canvasWidth, out Int32 canvasHeight, out WebpAnimationOptions options) #Returns:
BooleanAttempts to decode animated WebP frames into RGBA32 buffers (managed).
Parameters
- data System.ReadOnlySpan{System.Byte}
- frames CodeGlyphX.Rendering.Webp.WebpAnimationFrame[]@
- canvasWidth System.Int32@
- canvasHeight System.Int32@
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions@
public static Boolean TryReadDimensions(ReadOnlySpan<Byte> data, out Int32 width, out Int32 height) #Returns:
BooleanAttempts to read WebP dimensions from the RIFF container without decoding pixels.
Parameters
- data System.ReadOnlySpan{System.Byte}
- width System.Int32@
- height System.Int32@
Inherited Methods
Properties
public static Int32 MaxWebpBytes { get; set; } #Maximum managed WebP payload size (in bytes).
Fields
public const Int32 DefaultMaxWebpBytes #Default maximum managed WebP payload size (in bytes).
Value:
134217728