| Package | Description |
|---|---|
| com.itextpdf.kernel.colors | |
| com.itextpdf.kernel.contrast | |
| com.itextpdf.kernel.pdf.annot.da |
| Modifier and Type | Method and Description |
|---|---|
static DeviceRgb |
Color.convertCmykToRgb(DeviceCmyk cmykColor)
Converts
DeviceCmyk color to
DeviceRgb color |
static DeviceRgb |
WebColors.getRGBColor(String name)
Gives you a DeviceRgb based on a name.
|
static DeviceRgb |
DeviceRgb.makeDarker(DeviceRgb rgbColor)
Returns
DeviceRgb color which is darker than given one |
static DeviceRgb |
DeviceRgb.makeLighter(DeviceRgb rgbColor)
Returns
DeviceRgb color which is lighter than given one |
| Modifier and Type | Method and Description |
|---|---|
static DeviceCmyk |
Color.convertRgbToCmyk(DeviceRgb rgbColor)
Converts
DeviceRgb color to
DeviceCmyk color |
static DeviceRgb |
DeviceRgb.makeDarker(DeviceRgb rgbColor)
Returns
DeviceRgb color which is darker than given one |
static DeviceRgb |
DeviceRgb.makeLighter(DeviceRgb rgbColor)
Returns
DeviceRgb color which is lighter than given one |
| Modifier and Type | Method and Description |
|---|---|
static double |
ColorContrastCalculator.contrastRatio(DeviceRgb color1,
DeviceRgb color2)
Calculates the contrast ratio between two colors according to WCAG 2.1 guidelines.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationDefaultAppearance |
AnnotationDefaultAppearance.setColor(DeviceRgb rgbColor)
Sets the
AnnotationDefaultAppearance's default font color. |
Copyright © 1998–2026 Apryse Group NV. All rights reserved.