public class DeviceGray extends Color
Modifier and Type | Field and Description |
---|---|
static DeviceGray |
BLACK
Predefined black DeviceGray color.
|
static DeviceGray |
GRAY
Predefined gray DeviceGray color.
|
static DeviceGray |
WHITE
Predefined white DeviceGray color.
|
BLUE, colorSpace, colorValue, CYAN, DARK_GRAY, GREEN, LIGHT_GRAY, MAGENTA, ORANGE, PINK, RED, YELLOW
Constructor and Description |
---|
DeviceGray()
Creates DeviceGray color with grayscale value initialised as zero.
|
DeviceGray(float value)
Creates DeviceGray color by given grayscale.
|
Modifier and Type | Method and Description |
---|---|
static DeviceGray |
makeDarker(DeviceGray grayColor)
Returns DeviceGray color which is darker than given one
|
static DeviceGray |
makeLighter(DeviceGray grayColor)
Returns DeviceGray color which is lighter than given one
|
convertCmykToRgb, convertRgbToCmyk, equals, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor, setColorValue
public static final DeviceGray WHITE
public static final DeviceGray GRAY
public static final DeviceGray BLACK
public DeviceGray(float value)
value
- the grayscale value
public DeviceGray()
public static DeviceGray makeLighter(DeviceGray grayColor)
DeviceGray
color which is lighter than given one
grayColor
- the DeviceGray color to be made lighter
public static DeviceGray makeDarker(DeviceGray grayColor)
DeviceGray
color which is darker than given one
grayColor
- the DeviceGray color to be made darker
Copyright © 1998–2017 iText Group NV. All rights reserved.