Click or drag to resize

ColorCMYK Structure

Represents a color in the CMYK color model.

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public struct ColorCMYK : IEquatable<ColorCMYK>

The ColorCMYK type exposes the following members.

Constructors
  NameDescription
Public methodColorCMYK(Color)
Initializes a new instance of the ColorCMYK with the specified RGB Color
Public methodColorCMYK(Single, Single, Single, Single, Single)
Initializes a new instance of the ColorCMYK class
Top
Properties
  NameDescription
Public propertyA
Alpha component
Public propertyC
Cyan component
Public propertyK
Key (black) component
Public propertyM
Magenta component
Public propertyY
Yellow component
Top
Methods
  NameDescription
Public methodStatic memberDistance
Calculates the 'distance' of two CMYK colors
Public methodEquals(Object)
Returns a value indicating that this is equal to the specified object
(Overrides ValueTypeEquals(Object).)
Public methodEquals(ColorCMYK)
Returns a value indicating that this is equal to the specified color
Public methodGetHashCode
Gets the hash code for this object
(Overrides ValueTypeGetHashCode.)
Public methodToColor
Gets this object as an ARGB color value
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two colors for equality
Public operatorStatic member(Color to ColorCMYK)
Converts this an ARGB color value to a CMYK value
Public operatorStatic member(ColorCMYK to Color)
Converts this instance to an ARGB color value
Public operatorStatic memberInequality
Compares two colors for inequality
Top
Remarks
This is a helper class to handle CMYK colors. Whenever a color is used it must be converted to a Color struct first, either by using ToColor or the implicit conversion.
See Also