CMYK
Struct in Zigurous.ColorPro
Implements IComponentModel<T>, IComponentModel, IEquatable<T>
Declaration
[Serializable]
public struct CMYK : IComponentModel<CMYK>, IComponentModel
Description
The CMYK (cyan, magenta, yellow, black) components of a color in the range [0..1].
Properties
cyan | The cyan component of the color in the range [0..1]. |
magenta | The magenta component of the color in the range [0..1]. |
yellow | The yellow component of the color in the range [0..1]. |
black | The black component of the color in the range [0..1]. |
Item[int] | Gets or sets the component at the specified index. |
Constructors
CMYK | Creates new CMYK components from the given values. |
Methods
Copy | Returns a copy of the components. |
Set | Converts a color to the components and sets them as the new values. |
Mix | Returns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color. |
Equals | Determines if the components are equal to another. |
GetHashCode | Returns the hash code of the components. |
ToString | Converts the components to a string. |
ToColor | Converts the components to a color. |
ToRGB | Converts the components to RGB components. |
ToRGBA | Converts the components to RGBA components. |
ToARGB | Converts the components to ARGB components. |
Operators
Equality | |
Inequality | |
Explicit |