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 object
public TransparentColor(Color color, float opacity)
TransparentColor.
color - the Color of the created TransparentColor object
opacity - 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 transparent
public float getOpacity()
public void applyFillTransparency(PdfCanvas canvas)
canvas - the PdfCanvas to be written to
Copyright © 1998–2022 iText Group NV. All rights reserved.