iText 8.0.5 API
iText.Kernel.Colors.DeviceCmyk Class Reference

Color space to specify colors according to CMYK color model. More...

Inheritance diagram for iText.Kernel.Colors.DeviceCmyk:
iText.Kernel.Colors.Color

Public Member Functions

  DeviceCmyk ()
  Creates DeviceCmyk color with all colorants intensities initialised as zeroes. More...
 
  DeviceCmyk (int c, int m, int y, int k)
  Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants. More...
 
  DeviceCmyk???????? (float c, float m, float y, float k)
  Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants. More...
 
- Public Member Functions inherited from iText.Kernel.Colors.Color
virtual int  GetNumberOfComponents ()
  Returns the number of color value components More...
 
virtual PdfColorSpace  GetColorSpace ()
  Returns the color space to which the color is related. More...
 
virtual float[]  GetColorValue ()
  Returns the color value of the color More...
 
virtual void  SetColorValue (float[] value)
  Sets the color value of the color More...
 
override int  GetHashCode ()
 
override bool  Equals (Object o)
  Indicates whether the color is equal to the given color. More...
 

Static Public Member Functions

static iText.Kernel.Colors.DeviceCmyk  MakeLighter (iText.Kernel.Colors.DeviceCmyk cmykColor)
  Returns DeviceCmyk color which is lighter than given one More...
 
static iText.Kernel.Colors.DeviceCmyk  MakeDarker (iText.Kernel.Colors.DeviceCmyk cmykColor)
  Returns DeviceCmyk color which is darker than given one More...
 
- Static Public Member Functions inherited from iText.Kernel.Colors.Color
static iText.Kernel.Colors.Color  MakeColor (PdfColorSpace colorSpace)
  Makes a Color of certain color space. More...
 
static iText.Kernel.Colors.Color  MakeColor (PdfColorSpace colorSpace, float[] colorValue)
  Makes a Color of certain color space and color value. More...
 
static DeviceRgb  ConvertCmykToRgb (DeviceCmyk cmykColor)
  Converts DeviceCmyk color to DeviceRgb color More...
 
static DeviceCmyk  ConvertRgbToCmyk (DeviceRgb rgbColor)
  Converts DeviceRgb color to DeviceCmyk color More...
 
static iText.Kernel.Colors.Color  CreateColorWithColorSpace (float[] colorValue)
  Creates a color object based on the passed through values. More...
 

Static Public Attributes

static readonly iText.Kernel.Colors.DeviceCmyk  CYAN
  Predefined cyan DeviceCmyk color More...
 
static readonly iText.Kernel.Colors.DeviceCmyk  MAGENTA
  Predefined magenta DeviceCmyk color More...
 
static readonly iText.Kernel.Colors.DeviceCmyk  YELLOW
  Predefined yellow DeviceCmyk color More...
 
static readonly iText.Kernel.Colors.DeviceCmyk  BLACK
  Predefined black DeviceCmyk color More...
 

Additional Inherited Members

- Package Functions inherited from iText.Kernel.Colors.Color
  Color (PdfColorSpace colorSpace, float[] colorValue)
  Creates a Color of certain color space and color value. More...
 
- Package Attributes inherited from iText.Kernel.Colors.Color
PdfColorSpace  colorSpace
  The color space of the color More...
 
float[]  colorValue
  The color value of the color More...
 

Detailed Description

Color space to specify colors according to CMYK color model.

Constructor & Destructor Documentation

◆ DeviceCmyk() [1/2]

iText.Kernel.Colors.DeviceCmyk.DeviceCmyk ( )
inline

Creates DeviceCmyk color with all colorants intensities initialised as zeroes.

◆ DeviceCmyk() [2/2]

iText.Kernel.Colors.DeviceCmyk.DeviceCmyk ( int  c,
int  m,
int  y,
int  k 
)
inline

Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants.

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).

Parameters
c the intensity of cyan colorant
m the intensity of magenta colorant
y the intensity of yellow colorant
k the intensity of black colorant

Member Function Documentation

◆ DeviceCmyk????????()

iText.Kernel.Colors.DeviceCmyk.DeviceCmyk???????? ( float  c,
float  m,
float  y,
float  k 
)
inline

Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants.

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).

Parameters
c the intensity of cyan colorant
m the intensity of magenta colorant
y the intensity of yellow colorant
k the intensity of black colorant

◆ MakeDarker()

static iText.Kernel.Colors.DeviceCmyk iText.Kernel.Colors.DeviceCmyk.MakeDarker ( iText.Kernel.Colors.DeviceCmyk  cmykColor )
inlinestatic

Returns DeviceCmyk color which is darker than given one

Parameters
cmykColor the DeviceCmyk color to be made darker
Returns
darker color

◆ MakeLighter()

static iText.Kernel.Colors.DeviceCmyk iText.Kernel.Colors.DeviceCmyk.MakeLighter ( iText.Kernel.Colors.DeviceCmyk  cmykColor )
inlinestatic

Returns DeviceCmyk color which is lighter than given one

Parameters
cmykColor the DeviceCmyk color to be made lighter
Returns
lighter color

Member Data Documentation

◆ BLACK

readonly iText.Kernel.Colors.DeviceCmyk iText.Kernel.Colors.DeviceCmyk.BLACK
static
Initial value:
= new iText.Kernel.Colors.DeviceCmyk(0, 0, 0,
100)

Predefined black DeviceCmyk color

◆ CYAN

readonly iText.Kernel.Colors.DeviceCmyk iText.Kernel.Colors.DeviceCmyk.CYAN
static
Initial value:
= new iText.Kernel.Colors.DeviceCmyk(100, 0, 0,
0)

Predefined cyan DeviceCmyk color

◆ MAGENTA

readonly iText.Kernel.Colors.DeviceCmyk iText.Kernel.Colors.DeviceCmyk.MAGENTA
static
Initial value:
= new iText.Kernel.Colors.DeviceCmyk(0, 100,
0, 0)

Predefined magenta DeviceCmyk color

◆ YELLOW

readonly iText.Kernel.Colors.DeviceCmyk iText.Kernel.Colors.DeviceCmyk.YELLOW
static
Initial value:
= new iText.Kernel.Colors.DeviceCmyk(0, 0, 100
, 0)

Predefined yellow DeviceCmyk color

iText.Kernel.Colors.DeviceCmyk
Color space to specify colors according to CMYK color model.
Definition: DeviceCmyk.cs:29
iText.Kernel.Colors
Definition: CalGray.cs:25
iText.Kernel
Definition: ITextCoreProductData.cs:27
iText
Definition: Barcode128.cs:35