Class ImageTransformer

    Definition

    Namespace:
    Tizen.Multimedia.Util
    Assembly:
    Tizen.Multimedia.Util.dll

    Provides the ability to transform an image.

    public class ImageTransformer : IDisposable
    Inheritance
    object
    ImageTransformer
    Implements
    System.IDisposable

    Constructors

    View Source

    ImageTransformer()

    Initializes a new instance of the ImageTransformer class.

    Declaration
    public ImageTransformer()

    Methods

    View Source

    Dispose()

    Releases all resources used by the ImageTransformer.

    Declaration
    public void Dispose()
    View Source

    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.

    View Source

    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 source must be VideoMediaFormat.

    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

    source is null.
    -or-
    item is null.

    System.ArgumentException

    source is not video format.

    System.ObjectDisposedException

    The ImageTransformer has already been disposed of.

    System.InvalidOperationException

    Failed to apply ImageTransform.

    System.NotSupportedException

    Specified transformation is not supported.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX