Class DeviceCmyk
Color space to specify colors according to CMYK color model.
public class DeviceCmyk : Color
- Inheritance
-
DeviceCmyk
- Inherited Members
Constructors
DeviceCmyk()
Creates DeviceCmyk color with all colorants intensities initialised as zeroes.
public DeviceCmyk()
DeviceCmyk(int, int, int, int)
Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants.
public DeviceCmyk(int c, int m, int y, int k)
Parameters
c
intthe intensity of cyan colorant
m
intthe intensity of magenta colorant
y
intthe intensity of yellow colorant
k
intthe intensity of black colorant
Remarks
Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants. The intensities are considered to be in [0, 100] gap, if not, the intensity will be considered as 100 (when colorant's value is bigger than 100) or 0 (when colorant's value is less than 0).
DeviceCmyk(float, float, float, float)
Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants.
public DeviceCmyk(float c, float m, float y, float k)
Parameters
c
floatthe intensity of cyan colorant
m
floatthe intensity of magenta colorant
y
floatthe intensity of yellow colorant
k
floatthe intensity of black colorant
Remarks
Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants. The intensities are considered to be in [0, 1] interval, if not, the intensity will be considered as 1 (when colorant's value is bigger than 1) or 0 (when colorant's value is less than 0).
Fields
BLACK
Predefined black DeviceCmyk color
public static readonly DeviceCmyk BLACK
Field Value
CYAN
Predefined cyan DeviceCmyk color
public static readonly DeviceCmyk CYAN
Field Value
MAGENTA
Predefined magenta DeviceCmyk color
public static readonly DeviceCmyk MAGENTA
Field Value
YELLOW
Predefined yellow DeviceCmyk color
public static readonly DeviceCmyk YELLOW
Field Value
Methods
MakeDarker(DeviceCmyk)
Returns DeviceCmyk color which is darker than given one
public static DeviceCmyk MakeDarker(DeviceCmyk cmykColor)
Parameters
cmykColor
DeviceCmykthe DeviceCmyk color to be made darker
Returns
- DeviceCmyk
darker color
MakeLighter(DeviceCmyk)
Returns DeviceCmyk color which is lighter than given one
public static DeviceCmyk MakeLighter(DeviceCmyk cmykColor)
Parameters
cmykColor
DeviceCmykthe DeviceCmyk color to be made lighter
Returns
- DeviceCmyk
lighter color