CodeGlyphX logo
CodeGlyphX

API Reference

Struct

WebpAnimationFrame

Namespace CodeGlyphX.Rendering.Webp
Assembly CodeGlyphX
Base ValueType
Modifiers sealed

Describes a single RGBA32 frame for animated WebP encoding.

Inheritance

  • ValueType
  • WebpAnimationFrame

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public WebpAnimationFrame(Byte[] rgba, Int32 width, Int32 height, Int32 stride, Int32 durationMs, Int32 x = 0, Int32 y = 0, Boolean blend = true, Boolean disposeToBackground = false) #

Creates a WebP animation frame backed by an RGBA32 buffer.

Parameters

rgba System.Byte[] requiredposition: 0
width System.Int32 requiredposition: 1
height System.Int32 requiredposition: 2
stride System.Int32 requiredposition: 3
durationMs System.Int32 requiredposition: 4
x System.Int32 = 0 optionalposition: 5
y System.Int32 = 0 optionalposition: 6
blend System.Boolean = true optionalposition: 7
disposeToBackground System.Boolean = false optionalposition: 8

Properties

public Byte[] Rgba { get; } #

RGBA32 pixel buffer.

public Int32 Width { get; } #

Frame width in pixels.

public Int32 Height { get; } #

Frame height in pixels.

public Int32 Stride { get; } #

Frame stride in bytes.

public Int32 DurationMs { get; } #

Frame duration in milliseconds.

public Int32 X { get; } #

Frame X offset on the canvas.

public Int32 Y { get; } #

Frame Y offset on the canvas.

public Boolean Blend { get; } #

Whether to alpha-blend the frame over the canvas.

public Boolean DisposeToBackground { get; } #

Whether to dispose to background after the frame.