VisioForge (c) 2025

Search Results for

    Class GIFFrame

    A single GIF frame.

    Inheritance
    object
    GIFFrame
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: VisioForge.Core.GIF
    Assembly: VisioForge.Core.dll
    Syntax
    public class GIFFrame : IDisposable

    Constructors

    GIFFrame(SKBitmap, TimeSpan, TimeSpan, bool)

    Initializes a new instance of the GIFFrame class.

    Declaration
    public GIFFrame(SKBitmap image, TimeSpan delay, TimeSpan position, bool decodeToRGB32)
    Parameters
    Type Name Description
    SKBitmap image

    Image.

    TimeSpan delay

    Delay.

    TimeSpan position

    Position.

    bool decodeToRGB32

    True to decode to RGB32.

    Properties

    EndPosition

    Gets the end position.

    Declaration
    public TimeSpan EndPosition { get; }
    Property Value
    Type Description
    TimeSpan

    The end position.

    Height

    Gets or sets height.

    Declaration
    public int Height { get; set; }
    Property Value
    Type Description
    int

    Image

    Gets the image.

    Declaration
    public SKBitmap Image { get; }
    Property Value
    Type Description
    SKBitmap

    Length

    Gets or sets the length.

    Declaration
    public TimeSpan Length { get; }
    Property Value
    Type Description
    TimeSpan

    Position

    Gets or sets the position.

    Declaration
    public TimeSpan Position { get; }
    Property Value
    Type Description
    TimeSpan

    RGB32

    Gets image as RGB32.

    Declaration
    public nint RGB32 { get; }
    Property Value
    Type Description
    nint

    RGB32Size

    Gets the size of the RGB32 image.

    Declaration
    public int RGB32Size { get; }
    Property Value
    Type Description
    int

    The size of the rg B32.

    Width

    Gets or sets width.

    Declaration
    public int Width { get; set; }
    Property Value
    Type Description
    int

    X

    Gets or sets the x position of the frame.

    Declaration
    public int X { get; set; }
    Property Value
    Type Description
    int

    Y

    Gets or sets the Y position of the frame.

    Declaration
    public int Y { get; set; }
    Property Value
    Type Description
    int

    Methods

    Dispose()

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

    Declaration
    public void Dispose()

    Dispose(bool)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

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

    ~GIFFrame()

    Finalizes an instance of the GIFFrame class.

    Declaration
    protected ~GIFFrame()

    Resize(int, int, GIFResizeStretchMode)

    Declaration
    public void Resize(int newWidth, int newHeight, GIFResizeStretchMode mode)
    Parameters
    Type Name Description
    int newWidth
    int newHeight
    GIFResizeStretchMode mode

    ToString()

    Returns a string that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents this instance.

    Overrides
    object.ToString()

    Implements

    IDisposable