Table of Contents

Class GIFFrame

Namespace
VisioForge.Core.GIF
Assembly
VisioForge.Core.dll

A single GIF frame.

public class GIFFrame : IDisposable

Inheritance

Implements

Inherited Members

Constructors

GIFFrame(SKBitmap, TimeSpan, TimeSpan, bool)

Initializes a new instance of the VisioForge.Core.GIF.GIFFrame class.

public GIFFrame(SKBitmap image, TimeSpan delay, TimeSpan position, bool decodeToRGB32)

Parameters

image SKBitmap

Image.

delay TimeSpan

Delay.

position TimeSpan

Position.

decodeToRGB32 bool

True to decode to RGB32.

Properties

EndPosition

Gets the end position.

public TimeSpan EndPosition { get; }

Property Value

TimeSpan

Height

Gets or sets height.

public int Height { get; set; }

Property Value

int

Image

Gets the image.

public SKBitmap Image { get; }

Property Value

SKBitmap

Length

Gets or sets the length.

public TimeSpan Length { get; }

Property Value

TimeSpan

Position

Gets or sets the position.

public TimeSpan Position { get; }

Property Value

TimeSpan

RGB32

Gets image as RGB32.

public nint RGB32 { get; }

Property Value

nint

RGB32Size

Gets the size of the RGB32 image.

public int RGB32Size { get; }

Property Value

int

Width

Gets or sets width.

public int Width { get; set; }

Property Value

int

X

Gets or sets the x position of the frame.

public int X { get; set; }

Property Value

int

Y

Gets or sets the Y position of the frame.

public int Y { get; set; }

Property Value

int

Methods

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~GIFFrame()

Finalizes an instance of the VisioForge.Core.GIF.GIFFrame class.

protected ~GIFFrame()

Resize(int, int, GIFResizeStretchMode)

Resizes the GIF frame.

public void Resize(int newWidth, int newHeight, GIFResizeStretchMode mode)

Parameters

newWidth int

The new width.

newHeight int

The new height.

mode GIFResizeStretchMode

The resize mode.

ToString()

Returns a String that represents this instance.

public override string ToString()

Returns

string

A String that represents this instance.