Class GIFFrame
- Namespace
- VisioForge.Core.GIF
- Assembly
- VisioForge.Core.dll
A single GIF frame.
public class GIFFrame : IDisposableInheritance
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
imageSKBitmap-
Image.
delayTimeSpan-
Delay.
positionTimeSpan-
Position.
decodeToRGB32bool-
True to decode to RGB32.
Properties
EndPosition
Gets the end position.
public TimeSpan EndPosition { get; }Property Value
Height
Gets or sets height.
public int Height { get; set; }Property Value
Image
Gets the image.
public SKBitmap Image { get; }Property Value
Length
Gets or sets the length.
public TimeSpan Length { get; }Property Value
Position
Gets or sets the position.
public TimeSpan Position { get; }Property Value
RGB32
Gets image as RGB32.
public nint RGB32 { get; }Property Value
RGB32Size
Gets the size of the RGB32 image.
public int RGB32Size { get; }Property Value
Width
Gets or sets width.
public int Width { get; set; }Property Value
X
Gets or sets the x position of the frame.
public int X { get; set; }Property Value
Y
Gets or sets the Y position of the frame.
public int Y { get; set; }Property Value
Methods
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto 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
newWidthint-
The new width.
newHeightint-
The new height.
modeGIFResizeStretchMode-
The resize mode.
ToString()
Returns a String that represents this instance.
public override string ToString()