CmykColor Class
Namespace | Skybrud.Colors |
---|---|
Assembly | Skybrud.Colors.dll |
Visibility | Public |
Interfaces | IColor |
Inheritance | Object |
Class representing a color in the CMYK color model. CMYK stands for cyan
,
magenta
, yellow
and key
(black).
public class CmykColor : IColor { }
Properties
Type | Name | Summary |
---|---|---|
Double | C |
Gets the amount of cyan in the color. |
Double | M |
Gets the amount of magenta in the color. |
Double | Y |
Gets the amount of yellow in the color. |
Double | K |
Gets the amount of black (key) in the color. |
Methods
Darken(float)
(virtual)
Increases the darkness of the color based on the specified |
Lighten(float)
(virtual)
Increases the lightness of the color based on the specified |
ToCmy()
(virtual)
Converts the CMYK color to an instance of CmyColor. |
ToCmyk()
(virtual)
Returns a new instance of the current CMYK color. |
ToCss()
(virtual)
Returns the CSS representation of the color. Since the CSS specification doesn't support CMYK colors, this
method will simply return |
ToHex()
(virtual)
Returns the HEX representation of the color. |
ToHsl()
(virtual)
Converts the CMYK color to an instance of HslColor. |
ToRgb()
(virtual)
Converts the CMYK color to an instance of RgbColor. |
ToString()
(virtual)
Returns a string representation of the CMYK color. |