Class Palette.Swatch

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    Represents a color swatch generated from an image's palette. The RGB color can be retrieved calling getRgb()

    public sealed class Palette.Swatch
    Inheritance
    object
    Palette.Swatch

    Methods

    View Source

    GetBodyTextColor()

    Returns an appropriate color to use for any 'body' text which is displayed over this Palette.Swatchs color. This color is guaranteed to have sufficient contrast.

    Declaration
    public Color GetBodyTextColor()
    Returns
    Type Description
    Color

    A Tizen.NUI.Color value.

    View Source

    GetHsl()

    Return this swatch's hsl values. hsv[0] is Hue [0 .. 360) hsv[1] is Saturation [0...1] hsv[2] is Lightness [0...1]

    Declaration
    public float[] GetHsl()
    Returns
    Type Description
    float[]

    A float array value.

    View Source

    GetPopulation()

    Returns the number of pixels detected in this swatch.

    Declaration
    public int GetPopulation()
    Returns
    Type Description
    int

    A number of pixels value.

    View Source

    GetRgb()

    return this swatch's RGB color value

    Declaration
    public Color GetRgb()
    Returns
    Type Description
    Color

    A Tizen.NUI.Color value.

    View Source

    GetTitleTextColor()

    Returns an appropriate color to use for any 'title' text which is displayed over this Palette.Swatchs color. This color is guaranteed to have sufficient contrast.

    Declaration
    public Color GetTitleTextColor()
    Returns
    Type Description
    Color

    A Tizen.NUI.Color value.

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