Class ImageEncoder

    Definition

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

    This is a base class for image encoders.

    public abstract class ImageEncoder : IDisposable
    Inheritance
    object
    ImageEncoder
    Derived
    BmpEncoder
    GifEncoder
    JpegEncoder
    JpegXlEncoder
    PngEncoder
    WebPEncoder

    Properties

    View Source

    OutputFormat

    Gets the image format of this encoder.

    Declaration
    public ImageFormat OutputFormat { get; }
    Property Value
    Type Description
    ImageFormat

    Methods

    View Source

    Dispose()

    Releases all resources used by the ImageEncoder.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Releases the unmanaged resources used by the ImageEncoder.

    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

    EncodeAsync(byte[], Stream)

    Encodes an image from a raw image buffer to a specified .

    Declaration
    public 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
    SetResolution(Size)
    View Source

    SetColorSpace(ColorSpace)

    Declaration
    public void SetColorSpace(ColorSpace colorSpace)
    Parameters
    Type Name Description
    ColorSpace colorSpace
    View Source

    SetResolution(Size)

    Sets the resolution of the output image.

    Declaration
    public void SetResolution(Size resolution)
    Parameters
    Type Name Description
    Size resolution

    The target resolution.

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX