Class ImageUtil

    Definition

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

    Provides utilities for images.

    public static class ImageUtil
    Inheritance
    object
    ImageUtil

    Methods

    View Source

    GetColor(byte[], Size)

    Extracts representative color from an image buffer.

    Declaration
    public static Color GetColor(byte[] buffer, Size size)
    Parameters
    Type Name Description
    byte[] buffer

    Raw image buffer.

    Size size

    Resolution of the image.

    Returns
    Type Description
    Color

    The representative color of the image.

    Remarks

    The image should be Rgb888.

    Exceptions
    Type Condition
    System.ArgumentNullException

    buffer is null.

    System.ArgumentException

    buffer is empty.

    System.ArgumentOutOfRangeException

    width of size is less than or equal to zero.
    -or-
    height of size is less than or equal to zero.

    View Source

    GetSupportedColorSpaces(ImageFormat)

    Retrieves supported colorspaces for a ImageFormat that represents formats for ImageEncoder and ImageDecoder.

    Declaration
    public static IEnumerable<ColorSpace> GetSupportedColorSpaces(ImageFormat format)
    Parameters
    Type Name Description
    ImageFormat format

    The ImageFormat.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<T><ColorSpace>

    An IEnumerable of ColorSpace representing the supported color-spaces.

    Exceptions
    Type Condition
    System.ArgumentException

    format is invalid.

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