Class ImageTransformer

Definition

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

Provides the ability to transform an image.

C#
Copy
public class ImageTransformer : IDisposable
Inheritance
System.Object
ImageTransformer
Implements
System.IDisposable

Constructors

View Source

ImageTransformer()

Initializes a new instance of the ImageTransformer class.

Declaration
C#
Copy
public ImageTransformer()
API Level: 4

Methods

View Source

Dispose()

Releases all resources used by the ImageTransformer.

Declaration
C#
Copy
public void Dispose()
API Level: 4
View Source

Dispose(Boolean)

Releases the unmanaged resources used by the ImageTransformer.

Declaration
C#
Copy
protected 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
View Source

TransformAsync(MediaPacket, ImageTransform)

Transforms an image with ImageTransform.

Declaration
C#
Copy
public Task<MediaPacket> TransformAsync(MediaPacket source, ImageTransform item)
Parameters
Type Name Description
MediaPacket source

MediaPacket to transform. The Format of this source must be VideoMediaFormat.

ImageTransform item

ImageTransform to apply.

Returns
Type Description
System.Threading.Tasks.Task<MediaPacket>

A task that represents the asynchronous transforming operation.

Exceptions
Type Condition
System.ArgumentNullException

source is null.
-or-
item is null.

System.ArgumentException

source is not video format.

ObjectDisposedException

The ImageTransformer has already been disposed of.

System.InvalidOperationException

Failed to apply ImageTransform.

System.NotSupportedException

Specified transformation is not supported.

API Level: 4

Implements

System.IDisposable