Table of Contents

Class DeviceCmyk

Namespace
iText.Kernel.Colors
Assembly
itext.kernel.dll

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 int

the intensity of cyan colorant

m int

the intensity of magenta colorant

y int

the intensity of yellow colorant

k int

the 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 float

the intensity of cyan colorant

m float

the intensity of magenta colorant

y float

the intensity of yellow colorant

k float

the 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

DeviceCmyk

CYAN

Predefined cyan DeviceCmyk color

public static readonly DeviceCmyk CYAN

Field Value

DeviceCmyk

MAGENTA

Predefined magenta DeviceCmyk color

public static readonly DeviceCmyk MAGENTA

Field Value

DeviceCmyk

YELLOW

Predefined yellow DeviceCmyk color

public static readonly DeviceCmyk YELLOW

Field Value

DeviceCmyk

Methods

MakeDarker(DeviceCmyk)

Returns DeviceCmyk color which is darker than given one

public static DeviceCmyk MakeDarker(DeviceCmyk cmykColor)

Parameters

cmykColor DeviceCmyk

the 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 DeviceCmyk

the DeviceCmyk color to be made lighter

Returns

DeviceCmyk

lighter color