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
- Implements
Constructors
View SourceGifEncoder()
Initializes a new instance of the GifEncoder class.
Declaration
public GifEncoder()
Remarks
OutputFormat will be the Gif.
Methods
View SourceEncodeAsync(IEnumerable<GifFrame>, Stream)
Encodes a Graphics Interchange Format (GIF) image from multiple raw image buffers to a specified Stream.
Declaration
public Task EncodeAsync(IEnumerable<GifFrame> frames, Stream outStream)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 |
|
| ArgumentException |
|
| InvalidOperationException | The resolution is not set. |
| ObjectDisposedException | The ImageEncoder has already been disposed of. |