# ColorCMYK struct

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public struct ColorCMYK : IEquatable<ColorCMYK>
```

Represents a color in the CMYK color model.

**Remarks:** This is a helper class to handle CMYK colors. Whenever a color is used it must be converted to a [Color](https://eto.picoe.ca/api/type/eto.drawing.color.md) struct first, either by using [ColorCMYK.ToColor()](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/tocolor.md) or the implicit conversion.

## Constructors

- [ColorCMYK](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/ctor.md): (2 overloads) Initializes a new instance of the ColorCMYK with the specified RGB [Color](https://eto.picoe.ca/api/type/eto.drawing.color.md)

## Properties

- [A](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/a.md): Alpha component
- [C](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/c.md): Cyan component
- [K](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/k.md): Key (black) component
- [M](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/m.md): Magenta component
- [Y](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/y.md): Yellow component

## Methods

- [Distance](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/distance.md): (static) Calculates the 'distance' of two CMYK colors
- [Equals](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/equals.md): (2 overloads) Returns a value indicating that this is equal to the specified color
- [GetHashCode](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/gethashcode.md): Gets the hash code for this object
- [ToColor](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/tocolor.md): Gets this object as an ARGB color value

## Operators

- [operator ==](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/op-equality.md): (static) Compares two colors for equality
- [operator !=](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/op-inequality.md): (static) Compares two colors for inequality

## Convertors

- [operator implicit](https://eto.picoe.ca/api/type/eto.drawing.colorcmyk/op-implicit.md): (2 overloads, static) Converts this instance to an ARGB color value
