Class GifEncoder

Definition

Namespace:
Tizen.Multimedia.Util
Assembly:
Tizen.Multimedia.Util.dll
API Level:
4

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

C#
Copy
public class GifEncoder : ImageEncoder, IDisposable
Inheritance
GifEncoder
Implements
System.IDisposable

Constructors

View Source

GifEncoder()

Initializes a new instance of the GifEncoder class.

Declaration
C#
Copy
public GifEncoder()
Remarks

OutputFormat will be the Gif.

API Level: 4

Methods

View Source

EncodeAsync(IEnumerable<GifFrame>, Stream)

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

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

The image frames to encode.

Stream outStream

The stream that the image is encoded to.

Returns
Type Description
Task

A task that represents the asynchronous encoding operation.

Exceptions
Type Condition
ArgumentNullException

frames is null.
-or-
outStream is null.

System.ArgumentException

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

InvalidOperationException

The resolution is not set.

ObjectDisposedException

The ImageEncoder has already been disposed of.

See Also
API Level: 4

Implements

System.IDisposable