public class TransparentColor extends Object
| Constructor and Description |
|---|
TransparentColor(Color color)
Creates a new
TransparentColor instance of certain fully opaque color. |
TransparentColor(Color color,
float opacity)
Creates a new
TransparentColor. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFillTransparency(PdfCanvas canvas)
Sets the opacity value for non-stroking operations in the transparent imaging model.
|
void |
applyStrokeTransparency(PdfCanvas canvas)
Sets the opacity value for stroking operations in the transparent imaging model.
|
Color |
getColor()
Gets the color.
|
float |
getOpacity()
Gets the opacity of color.
|
public TransparentColor(Color color)
TransparentColor instance of certain fully opaque color.color - the Color of the created TransparentColor objectpublic TransparentColor(Color color, float opacity)
TransparentColor.color - the Color of the created TransparentColor objectopacity - a float defining the opacity of the color; a float between 0 and 1,
where 1 stands for fully opaque color and 0 - for fully transparentpublic float getOpacity()
public void applyFillTransparency(PdfCanvas canvas)
canvas - the PdfCanvas to be written toCopyright © 1998–2023 Apryse Group NV. All rights reserved.