CodeGlyphX logo
CodeGlyphX

API Reference

Struct

ImageAnimationFrame

Namespace CodeGlyphX.Rendering
Assembly CodeGlyphX
Base ValueType
Modifiers sealed

Describes a single RGBA32 animation frame.

Inheritance

  • ValueType
  • ImageAnimationFrame

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 ImageAnimationFrame(Byte[] rgba, Int32 width, Int32 height, Int32 stride, Int32 durationMs, Int32 x = 0, Int32 y = 0) #

Creates an 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

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.