API Reference
WebpWriter
Managed WebP writer (VP8L lossless subset + VP8 lossy intra + animation container).
Inheritance
- Object
- WebpWriter
Methods
public static Byte[] WriteAnimationRgba32(Int32 canvasWidth, Int32 canvasHeight, WebpAnimationFrame[] frames, WebpAnimationOptions options) #Byte[]Encodes an animated WebP from RGBA32 frames (VP8L frames).
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames System.ReadOnlySpan{CodeGlyphX.Rendering.Webp.WebpAnimationFrame}
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
public static Byte[] WriteAnimationRgba32(Int32 canvasWidth, Int32 canvasHeight, WebpAnimationFrame[] frames, WebpAnimationOptions options, WebpMetadata metadata) #Byte[]Encodes an animated WebP from RGBA32 frames (VP8L frames) with metadata chunks.
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames System.ReadOnlySpan{CodeGlyphX.Rendering.Webp.WebpAnimationFrame}
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
- metadata CodeGlyphX.Rendering.Webp.WebpMetadata
WriteAnimationRgba32(System.Int32 canvasWidth, System.Int32 canvasHeight, CodeGlyphX.Rendering.Webp.WebpAnimationFrame[] frames, CodeGlyphX.Rendering.Webp.WebpAnimationOptions options) #Encodes an animated WebP from RGBA32 frames (VP8L frames).
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames CodeGlyphX.Rendering.Webp.WebpAnimationFrame[]
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
WriteAnimationRgba32(System.Int32 canvasWidth, System.Int32 canvasHeight, CodeGlyphX.Rendering.Webp.WebpAnimationFrame[] frames, CodeGlyphX.Rendering.Webp.WebpAnimationOptions options, CodeGlyphX.Rendering.Webp.WebpMetadata metadata) #Encodes an animated WebP from RGBA32 frames (VP8L frames) with metadata chunks.
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames CodeGlyphX.Rendering.Webp.WebpAnimationFrame[]
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
- metadata CodeGlyphX.Rendering.Webp.WebpMetadata
public static Byte[] WriteAnimationRgba32Lossy(Int32 canvasWidth, Int32 canvasHeight, WebpAnimationFrame[] frames, WebpAnimationOptions options, Int32 quality) #Byte[]Encodes an animated WebP from RGBA32 frames (managed VP8 lossy intra, with VP8L fallback).
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames System.ReadOnlySpan{CodeGlyphX.Rendering.Webp.WebpAnimationFrame}
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
- quality System.Int32
public static Byte[] WriteAnimationRgba32Lossy(Int32 canvasWidth, Int32 canvasHeight, WebpAnimationFrame[] frames, WebpAnimationOptions options, Int32 quality, WebpMetadata metadata) #Byte[]Encodes an animated WebP from RGBA32 frames (managed VP8 lossy intra, with VP8L fallback) with metadata.
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames System.ReadOnlySpan{CodeGlyphX.Rendering.Webp.WebpAnimationFrame}
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
- quality System.Int32
- metadata CodeGlyphX.Rendering.Webp.WebpMetadata
WriteAnimationRgba32Lossy(System.Int32 canvasWidth, System.Int32 canvasHeight, CodeGlyphX.Rendering.Webp.WebpAnimationFrame[] frames, CodeGlyphX.Rendering.Webp.WebpAnimationOptions options, System.Int32 quality) #Encodes an animated WebP from RGBA32 frames (managed VP8 lossy intra, with VP8L fallback).
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames CodeGlyphX.Rendering.Webp.WebpAnimationFrame[]
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
- quality System.Int32
WriteAnimationRgba32Lossy(System.Int32 canvasWidth, System.Int32 canvasHeight, CodeGlyphX.Rendering.Webp.WebpAnimationFrame[] frames, CodeGlyphX.Rendering.Webp.WebpAnimationOptions options, System.Int32 quality, CodeGlyphX.Rendering.Webp.WebpMetadata metadata) #Encodes an animated WebP from RGBA32 frames (managed VP8 lossy intra, with VP8L fallback) with metadata.
Parameters
- canvasWidth System.Int32
- canvasHeight System.Int32
- frames CodeGlyphX.Rendering.Webp.WebpAnimationFrame[]
- options CodeGlyphX.Rendering.Webp.WebpAnimationOptions
- quality System.Int32
- metadata CodeGlyphX.Rendering.Webp.WebpMetadata
public static Byte[] WriteRgba32(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride) #Byte[]Encodes an RGBA32 buffer as WebP lossless (managed VP8L subset).
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
public static Byte[] WriteRgba32(Int32 width, Int32 height, Byte[] rgba, Int32 stride) #Byte[]Encodes an RGBA32 buffer as WebP lossless (managed VP8L subset).
Parameters
- width System.Int32
- height System.Int32
- rgba System.Byte[]
- stride System.Int32
public static Byte[] WriteRgba32(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride, WebpMetadata metadata) #Byte[]Encodes an RGBA32 buffer as WebP lossless (managed VP8L subset) with metadata chunks.
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
- metadata CodeGlyphX.Rendering.Webp.WebpMetadata
public static Byte[] WriteRgba32Lossy(Int32 width, Int32 height, ReadOnlySpan<Byte> rgba, Int32 stride, Int32 quality) #Byte[]Encodes an RGBA32 buffer as a lossy WebP using a managed VP8 (lossy) bitstream when possible.
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
- quality System.Int32
public static Byte[] WriteRgba32Lossy(Int32 width, Int32 height, Byte[] rgba, Int32 stride, Int32 quality, WebpMetadata metadata) #Byte[]Encodes an RGBA32 buffer as a lossy WebP using a managed VP8 (lossy) bitstream when possible, with metadata.
Parameters
- width System.Int32
- height System.Int32
- rgba System.ReadOnlySpan{System.Byte}
- stride System.Int32
- quality System.Int32
- metadata CodeGlyphX.Rendering.Webp.WebpMetadata
public static Byte[] WriteRgba32Lossy(Int32 width, Int32 height, Byte[] rgba, Int32 stride, Int32 quality) #Byte[]Encodes an RGBA32 buffer as a lossy WebP by quantizing pixels and using VP8L.
Parameters
- width System.Int32
- height System.Int32
- rgba System.Byte[]
- stride System.Int32
- quality System.Int32
WriteRgba32Lossy(System.Int32 width, System.Int32 height, System.Byte[] rgba, System.Int32 stride, System.Int32 quality, CodeGlyphX.Rendering.Webp.WebpMetadata metadata) #Encodes an RGBA32 buffer as a lossy WebP by quantizing pixels and using VP8L, with metadata.
Parameters
- width System.Int32
- height System.Int32
- rgba System.Byte[]
- stride System.Int32
- quality System.Int32
- metadata CodeGlyphX.Rendering.Webp.WebpMetadata