Search Results for

    Show / Hide Table of Contents

    Class LumaChromaUv

    The Luma chroma (YUV, PAL, SDTV with BT.470) model

    Inheritance
    object
    BaseColorModel
    LumaChromaUv
    Namespace: Terminaux.Colors.Models
    Assembly: Terminaux.dll
    Syntax
    public class LumaChromaUv : BaseColorModel

    Properties

    | Edit this page View Source

    ChromaU

    The U component, known as chroma [0 -> 255]

    Declaration
    public int ChromaU { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    ChromaUNormalized

    The U component, known as chrominance information [-0.5019 -> 0.5019]

    Declaration
    public double ChromaUNormalized { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    ChromaV

    The V component, known as chroma [0 -> 255]

    Declaration
    public int ChromaV { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    ChromaVNormalized

    The V component, known as chrominance information [-0.5019 -> 0.5019]

    Declaration
    public double ChromaVNormalized { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Luma

    The Y component, known as luma information [0 -> 255]

    Declaration
    public int Luma { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    LumaNormalized

    The Y component, known as luma information [0.0 -> 1.0]

    Declaration
    public double LumaNormalized { get; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    Equals(LumaChromaUv)

    Declaration
    public bool Equals(LumaChromaUv other)
    Parameters
    Type Name Description
    LumaChromaUv other
    Returns
    Type Description
    bool
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    IsSpecifierAndValueValid(string)

    Does the string specifier represent a valid YUV specifier?

    Declaration
    public static bool IsSpecifierAndValueValid(string specifier)
    Parameters
    Type Name Description
    string specifier

    Specifier that represents a valid YUV specifier

    Returns
    Type Description
    bool

    True if the specifier is valid; false otherwise.

    | Edit this page View Source

    IsSpecifierValid(string, bool)

    Does the string specifier represent a valid YUV specifier?

    Declaration
    public static bool IsSpecifierValid(string specifier, bool checkParts = false)
    Parameters
    Type Name Description
    string specifier

    Specifier that represents a valid YUV specifier

    bool checkParts

    Whether to check the parts count or not

    Returns
    Type Description
    bool

    True if the specifier is valid; false otherwise.

    | Edit this page View Source

    ParseSpecifier(string)

    Parses the specifier and returns an instance of LumaChromaUv

    Declaration
    public static LumaChromaUv ParseSpecifier(string specifier)
    Parameters
    Type Name Description
    string specifier

    Specifier of YUV

    Returns
    Type Description
    LumaChromaUv

    An instance of LumaChromaUv

    Exceptions
    Type Condition
    TerminauxException
    | Edit this page View Source

    ParseSpecifierToRgb(string, ColorSettings?)

    Parses the specifier and returns an instance of LumaChromaUv converted to RedGreenBlue

    Declaration
    public static RedGreenBlue ParseSpecifierToRgb(string specifier, ColorSettings? settings = null)
    Parameters
    Type Name Description
    string specifier

    Specifier of RGB

    ColorSettings settings

    Settings to use. Use null for global settings

    Returns
    Type Description
    RedGreenBlue

    An instance of RedGreenBlue

    Exceptions
    Type Condition
    TerminauxException
    | Edit this page View Source

    ToString()

    yuv:<Y>;<U>;<V>

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    operator ==(LumaChromaUv, LumaChromaUv)

    Declaration
    public static bool operator ==(LumaChromaUv left, LumaChromaUv right)
    Parameters
    Type Name Description
    LumaChromaUv left
    LumaChromaUv right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(LumaChromaUv, LumaChromaUv)

    Declaration
    public static bool operator !=(LumaChromaUv left, LumaChromaUv right)
    Parameters
    Type Name Description
    LumaChromaUv left
    LumaChromaUv right
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX