Struct
CmykaColor

A struct representing a color comprised of Cyan, Magenta, Yellow, Key (Black) and Alpha channels.

Definition

Namespace:Telerik.Windows.Controls.ColorEditor.ColorSchemas

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Cmyka")]
public struct CmykaColor

Inherited Members ValueType.ToString()

Constructors

CmykaColor(double, double, double, double, double)

Initializes a new instance of the CmykaColor struct.

Declaration

cs-api-definition
public CmykaColor(double cyan, double magenta, double yellow, double key, double alpha)

Parameters

cyan

double

The cyan channel.

magenta

double

The magenta channel.

yellow

double

The yellow channel.

key

double

The key (black) channel.

alpha

double

The alpha channel.

Properties

Alpha

Gets the alpha (opacity) channel of the CmykaColor instance.

Declaration

cs-api-definition
public double Alpha { get; }

Property Value

double

The alpha channel.

Cyan

Gets the cyan channel of the CmykaColor instance.

Declaration

cs-api-definition
public double Cyan { get; }

Property Value

double

The cyan channel.

Key

Gets the key (black) channel of the CmykaColor instance.

Declaration

cs-api-definition
public double Key { get; }

Property Value

double

The key channel.

Magenta

Gets the magenta channel of the CmykaColor instance.

Declaration

cs-api-definition
public double Magenta { get; }

Property Value

double

The magenta channel.

Yellow

Gets the yellow channel of the CmykaColor instance.

Declaration

cs-api-definition
public double Yellow { get; }

Property Value

double

The yellow channel.

Methods

Equals(CmykaColor)

Compares the two instances.

Declaration

cs-api-definition
public bool Equals(CmykaColor otherInstance)

Parameters

otherInstance

CmykaColor

The other instance.

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ValueType.GetHashCode()

Operators

operator !=(CmykaColor, CmykaColor)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(CmykaColor instance1, CmykaColor instance2)

Parameters

instance1

CmykaColor

The instance1.

instance2

CmykaColor

The instance2.

Returns

bool

The result of the operator.

operator ==(CmykaColor, CmykaColor)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(CmykaColor instance1, CmykaColor instance2)

Parameters

instance1

CmykaColor

The instance1.

instance2

CmykaColor

The instance2.

Returns

bool

The result of the operator.

Extension Methods