Struct CmykaColor
A struct representing a color comprised of Cyan, Magenta, Yellow, Key (Black) and Alpha channels.
Inherited Members
Namespace: Telerik.Windows.Controls.ColorEditor.ColorSchemas
Assembly: Telerik.Windows.Controls.dll
Syntax
public struct CmykaColor
Constructors
CmykaColor(Double, Double, Double, Double, Double)
Initializes a new instance of the CmykaColor struct.
Declaration
public CmykaColor(double cyan, double magenta, double yellow, double key, double alpha)
Parameters
System.Double
cyan
The cyan channel. |
System.Double
magenta
The magenta channel. |
System.Double
yellow
The yellow channel. |
System.Double
key
The key (black) channel. |
System.Double
alpha
The alpha channel. |
Properties
Alpha
Gets the alpha (opacity) channel of the CmykaColor instance.
Declaration
public double Alpha { get; }
Property Value
System.Double
The alpha channel. |
Cyan
Gets the cyan channel of the CmykaColor instance.
Declaration
public double Cyan { get; }
Property Value
System.Double
The cyan channel. |
Key
Gets the key (black) channel of the CmykaColor instance.
Declaration
public double Key { get; }
Property Value
System.Double
The key channel. |
Magenta
Gets the magenta channel of the CmykaColor instance.
Declaration
public double Magenta { get; }
Property Value
System.Double
The magenta channel. |
Yellow
Gets the yellow channel of the CmykaColor instance.
Declaration
public double Yellow { get; }
Property Value
System.Double
The yellow channel. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
Equals(CmykaColor)
Compares the two instances.
Declaration
public bool Equals(CmykaColor otherInstance)
Parameters
CmykaColor
otherInstance
The other instance. |
Returns
System.Boolean
|
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
Overrides
Operators
Equality(CmykaColor, CmykaColor)
Implements the operator ==.
Declaration
public static bool operator ==(CmykaColor instance1, CmykaColor instance2)
Parameters
CmykaColor
instance1
The instance1. |
CmykaColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |
Inequality(CmykaColor, CmykaColor)
Implements the operator !=.
Declaration
public static bool operator !=(CmykaColor instance1, CmykaColor instance2)
Parameters
CmykaColor
instance1
The instance1. |
CmykaColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |