Class
CmykColor

Device CMYK color with cyan, magenta, yellow, and key (black) components; use for print-oriented color workflows.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class CmykColor : ColorBase, IEquatable<ColorBase>

Inheritance: objectColorBaseCmykColor

Implements: IEquatable<ColorBase>

Inherited Members ColorBase.Equals(object)ColorBase.GetHashCode()

Constructors

CmykColor()

Creates a CmykColor with all components set to 0.

Declaration

cs-api-definition
public CmykColor()

CmykColor(double, double, double, double)

Creates a CmykColor with explicit cyan, magenta, yellow, and key (black) values.

Declaration

cs-api-definition
public CmykColor(double c, double m, double y, double k)

Parameters

c

double

The cyan component of the color, a value between 0.0 and 1.0.

m

double

The magenta component of the color, a value between 0.0 and 1.0.

y

double

The yellow component of the color, a value between 0.0 and 1.0.

k

double

The key (black) component of the color, a value between 0.0 and 1.0.

Properties

C

Gets or sets the cyan component, 0.0–1.0.

Declaration

cs-api-definition
public double C { get; set; }

Property Value

double

The cyan component value.

K

Gets or sets the key (black) component, 0.0–1.0.

Declaration

cs-api-definition
public double K { get; set; }

Property Value

double

The key component value.

M

Gets or sets the magenta component, 0.0–1.0.

Declaration

cs-api-definition
public double M { get; set; }

Property Value

double

The magenta component value.

Y

Gets or sets the yellow component, 0.0–1.0.

Declaration

cs-api-definition
public double Y { get; set; }

Property Value

double

The yellow component value.

Methods

Equals(ColorBase)

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

Declaration

cs-api-definition
public override bool Equals(ColorBase other)

Parameters

other

ColorBase

The object to compare with the current object.

Returns

bool

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

Overrides ColorBase.Equals(ColorBase)