Class ImageEncoder
Definition
- Namespace:
- Tizen.Multimedia.Util
- Assembly:
- Tizen.Multimedia.Util.dll
- API Level:
- 4
This is a base class for image encoders.
C#Copypublic abstract class ImageEncoder : IDisposable
- Inheritance
-
ImageEncoder
- Derived
Properties
Declaration
C#Copypublic ImageFormat OutputFormat { get; }
Property Value
Type | Description |
---|---|
ImageFormat |
API Level: 4
Methods
Declaration
C#Copypublic void Dispose()
API Level: 4
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
API Level: 4
Declaration
C#Copypublic Task EncodeAsync(byte[] inputBuffer, Stream outStream)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | inputBuffer | The image buffer to encode. |
Stream | outStream | The stream that the image is encoded to. |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous encoding operation. |
See Also
API Level: 4
Declaration
C#Copypublic void SetColorSpace(ColorSpace colorSpace)
Parameters
Type | Name | Description |
---|---|---|
ColorSpace | colorSpace | The target color-space. |
See Also
API Level: 4
Declaration
C#Copypublic void SetResolution(Size resolution)
Parameters
Type | Name | Description |
---|---|---|
Size | resolution | The target resolution. |