Class ImageTransformer
Definition
- Namespace:
- Tizen.Multimedia.Util
- Assembly:
- Tizen.Multimedia.Util.dll
Provides the ability to transform an image.
public class ImageTransformer : IDisposable
- Inheritance
-
objectImageTransformer
- Implements
-
System.IDisposable
Constructors
View SourceImageTransformer()
Initializes a new instance of the ImageTransformer class.
Declaration
public ImageTransformer()
Methods
View SourceDispose()
Releases all resources used by the ImageTransformer.
Declaration
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the ImageTransformer.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
TransformAsync(MediaPacket, ImageTransform)
Transforms an image with ImageTransform.
Declaration
public Task<MediaPacket> TransformAsync(MediaPacket source, ImageTransform item)
Parameters
Type | Name | Description |
---|---|---|
MediaPacket | source | MediaPacket to transform. The Format of this |
ImageTransform | item | ImageTransform to apply. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><MediaPacket> | A task that represents the asynchronous transforming operation. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ObjectDisposedException | The ImageTransformer has already been disposed of. |
System.InvalidOperationException | Failed to apply ImageTransform. |
Implements
System.IDisposable