public class DeviceRgb extends Color
Modifier and Type | Field and Description |
---|---|
static Color |
BLACK
Predefined black DeviceRgb color
|
static Color |
BLUE
Predefined blue DeviceRgb color
|
static Color |
GREEN
Predefined green DeviceRgb color
|
static Color |
RED
Predefined red DeviceRgb color
|
static Color |
WHITE
Predefined white DeviceRgb color
|
colorSpace, colorValue, CYAN, DARK_GRAY, GRAY, LIGHT_GRAY, MAGENTA, ORANGE, PINK, YELLOW
Constructor and Description |
---|
DeviceRgb()
Creates DeviceRgb color with all colorants intensities initialised as zeroes.
|
DeviceRgb(Color color)
Create DeviceRGB color from R, G, B values of java.awt.Color
Note, that alpha chanel is ignored, but opacity still can be achieved in some places by using 'setOpacity' method or 'TransparentColor' class. |
DeviceRgb(float r, float g, float b)
Creates DeviceRgb color by intensities of red, green and blue colorants.
|
DeviceRgb(int r, int g, int b)
Creates DeviceRgb color by intensities of red, green and blue colorants.
|
Modifier and Type | Method and Description |
---|---|
static DeviceRgb |
makeDarker(DeviceRgb rgbColor)
Returns DeviceRgb color which is darker than given one
|
static DeviceRgb |
makeLighter(DeviceRgb rgbColor)
Returns DeviceRgb color which is lighter than given one
|
convertCmykToRgb, convertRgbToCmyk, equals, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor, setColorValue
public static final Color BLACK
public static final Color WHITE
public static final Color RED
public static final Color GREEN
public static final Color BLUE
public DeviceRgb(int r, int g, int b)
r
- the intensity of red colorant
g
- the intensity of green colorant
b
- the intensity of blue colorant
public DeviceRgb(float r, float g, float b)
r
- the intensity of red colorant
g
- the intensity of green colorant
b
- the intensity of blue colorant
public DeviceRgb(Color color)
color
- the color which RGB values are used
public DeviceRgb()
Copyright © 1998–2018 iText Group NV. All rights reserved.