Class ImageDecoder
Definition
- Namespace:
- Tizen.Multimedia.Util
- Assembly:
- Tizen.Multimedia.Util.dll
- API Level:
- 4
This is a base class for image decoders.
C#Copypublic abstract class ImageDecoder : IDisposable
- Inheritance
-
ImageDecoder
- Derived
Properties
Declaration
C#Copypublic ImageFormat InputFormat { get; }
Property Value
Type | Description |
---|---|
ImageFormat |
API Level: 4
Methods
Declaration
C#Copypublic Task<IEnumerable<BitmapFrame>> DecodeAsync(byte[] inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | inputBuffer | The image buffer from which to decode. |
Returns
Type | Description |
---|---|
Task<IEnumerable<BitmapFrame>> | A task that represents the asynchronous decoding operation. |
Remarks
Only Graphics Interchange Format(GIF) codec returns more than one frame.
Exceptions
Type | Condition |
---|---|
FileFormatException | The format of |
API Level: 4
Declaration
C#Copypublic Task<IEnumerable<BitmapFrame>> DecodeAsync(string inputFilePath)
Parameters
Type | Name | Description |
---|---|---|
String | inputFilePath | The input file path from which to decode. |
Returns
Type | Description |
---|---|
Task<IEnumerable<BitmapFrame>> | A task that represents the asynchronous decoding operation. |
Remarks
Only Graphics Interchange Format(GIF) codec returns more than one frame.
http://tizen.org/privilege/mediastorage is needed if inputFilePath
is relevant to the media storage.
http://tizen.org/privilege/externalstorage is needed if inputFilePath
is relevant to the external storage.
Exceptions
Type | Condition |
---|---|
FileFormatException | The format of |
API Level: 4
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 void SetColorSpace(ColorSpace colorSpace)
Parameters
Type | Name | Description |
---|---|---|
ColorSpace | colorSpace | The value indicating color-space to decode into. |