Search Results for

    Show / Hide Table of Contents

    Class CyanMagentaYellow

    The CMY class instance

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

    Properties

    | Edit this page View Source

    C

    The cyan color value [0.0 -> 1.0]

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

    CWhole

    The cyan color value [0 -> 100]

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

    M

    The magenta color value [0.0 -> 1.0]

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

    MWhole

    The magenta color value [0 -> 100]

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

    Y

    The yellow color value [0.0 -> 1.0]

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

    YWhole

    The yellow color value [0 -> 100]

    Declaration
    public int YWhole { get; }
    Property Value
    Type Description
    int

    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(CyanMagentaYellow)

    Declaration
    public bool Equals(CyanMagentaYellow other)
    Parameters
    Type Name Description
    CyanMagentaYellow 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 CMY specifier?

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

    Specifier that represents a valid CMY 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 CMY specifier?

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

    Specifier that represents a valid CMY 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 CyanMagentaYellow

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

    Specifier of CMY

    Returns
    Type Description
    CyanMagentaYellow

    An instance of CyanMagentaYellow

    Exceptions
    Type Condition
    TerminauxException
    | Edit this page View Source

    ParseSpecifierToRgb(string, ColorSettings?)

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

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

    Specifier of CMY

    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()

    cmy:<C>;<M>;<Y>

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

    Operators

    | Edit this page View Source

    operator ==(CyanMagentaYellow, CyanMagentaYellow)

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

    operator !=(CyanMagentaYellow, CyanMagentaYellow)

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