Class GifEncoder

    Definition

    Namespace:
    Tizen.Multimedia.Util
    Assembly:
    Tizen.Multimedia.Util.dll

    Provides the ability to encode the Graphics Interchange Format (GIF) format images.

    public class GifEncoder : ImageEncoder, IDisposable
    Inheritance
    object
    ImageEncoder
    GifEncoder
    Implements
    System.IDisposable

    Constructors

    View Source

    GifEncoder()

    Initializes a new instance of the GifEncoder class.

    Declaration
    public GifEncoder()
    Remarks

    OutputFormat will be the Gif.

    Methods

    View Source

    EncodeAsync(IEnumerable<GifFrame>, Stream)

    Encodes a Graphics Interchange Format (GIF) image from multiple raw image buffers to a specified System.IO.Stream.

    Declaration
    public Task EncodeAsync(IEnumerable<GifFrame> frames, Stream outStream)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T><GifFrame> frames

    The image frames to encode.

    System.IO.Stream outStream

    The stream that the image is encoded to.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous encoding operation.

    Exceptions
    Type Condition
    System.ArgumentNullException

    frames is null.
    -or-
    outStream is null.

    System.ArgumentException

    frames has no element(empty).
    -or-
    outStream is not writable.

    System.InvalidOperationException

    The resolution is not set.

    System.ObjectDisposedException

    The ImageEncoder has already been disposed of.

    See Also
    SetResolution(Size)

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX