public class DeviceCmyk extends Color
Modifier and Type | Field and Description |
---|---|
static DeviceCmyk |
BLACK
Predefined black DeviceCmyk color
|
static DeviceCmyk |
CYAN
Predefined cyan DeviceCmyk color
|
static DeviceCmyk |
MAGENTA
Predefined magenta DeviceCmyk color
|
static DeviceCmyk |
YELLOW
Predefined yellow DeviceCmyk color
|
colorSpace, colorValue
Constructor and Description |
---|
DeviceCmyk()
Creates DeviceCmyk color with all colorants intensities initialised as zeroes.
|
DeviceCmyk(float c, float m, float y, float k)
Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants.
|
DeviceCmyk(int c, int m, int y, int k)
Creates DeviceCmyk color by intensities of cyan, magenta, yellow and black colorants.
|
Modifier and Type | Method and Description |
---|---|
static DeviceCmyk |
makeDarker(DeviceCmyk cmykColor)
Returns DeviceCmyk color which is darker than given one
|
static DeviceCmyk |
makeLighter(DeviceCmyk cmykColor)
Returns DeviceCmyk color which is lighter than given one
|
convertCmykToRgb, convertRgbToCmyk, equals, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor, setColorValue
public static final DeviceCmyk CYAN
public static final DeviceCmyk MAGENTA
public static final DeviceCmyk YELLOW
public static final DeviceCmyk BLACK
public DeviceCmyk()
public DeviceCmyk(int c, int m, int y, int k)
c
- the intensity of cyan colorant
m
- the intensity of magenta colorant
y
- the intensity of yellow colorant
k
- the intensity of black colorant
public DeviceCmyk(float c, float m, float y, float k)
c
- the intensity of cyan colorant
m
- the intensity of magenta colorant
y
- the intensity of yellow colorant
k
- the intensity of black colorant
public static DeviceCmyk makeLighter(DeviceCmyk cmykColor)
DeviceCmyk
color which is lighter than given one
cmykColor
- the DeviceCmyk color to be made lighter
public static DeviceCmyk makeDarker(DeviceCmyk cmykColor)
DeviceCmyk
color which is darker than given one
cmykColor
- the DeviceCmyk color to be made darker
Copyright © 1998–2021 iText Group NV. All rights reserved.