New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class CmykColor : ColorBase, IEquatable<ColorBase>

Inheritance: objectColorBaseCmykColor

Implements: IEquatable<ColorBase>

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

Constructors

Creates a CmykColor with all components set to 0.

C#
public CmykColor()

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

C#
public CmykColor(double c, double m, double y, double k)
Parameters:cdouble

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

mdouble

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

ydouble

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

kdouble

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

Methods

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

C#
public override bool Equals(ColorBase other)
Parameters:otherColorBase

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)

Properties

Gets or sets the cyan component, 0.0–1.0.

C#
public double C { get; set; }
Property Value:

The cyan component value.

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

C#
public double K { get; set; }
Property Value:

The key component value.

Gets or sets the magenta component, 0.0–1.0.

C#
public double M { get; set; }
Property Value:

The magenta component value.

Gets or sets the yellow component, 0.0–1.0.

C#
public double Y { get; set; }
Property Value:

The yellow component value.