public interface VGPaint
| Modifier and Type | Field and Description |
|---|---|
static int |
ALPHA_FULLY_OPAQUE
Value that indicates a fully opaque opacity.
|
static int |
ALPHA_FULLY_TRANSPARENT
Value that indicates a fully transparent opacity.
|
static int |
ALPHA_SHIFT
Value that to shift the opacity value in a ARGB 32-bit color.
|
| Modifier and Type | Method and Description |
|---|---|
VGPaint |
apply(PaintVisitor visitor)
Creates a new painter applying the given visitor.
|
static int |
applyOpacity(java.awt.Color color,
int alpha)
Utility method that returns a new color applying an opacity on the given color.
|
static int |
applyOpacity(int color,
int alpha)
Utility method that returns a new color applying an opacity on the given color.
|
java.awt.Paint |
getPaint()
Creates an AWT
Paint object. |
static final int ALPHA_FULLY_OPAQUE
static final int ALPHA_FULLY_TRANSPARENT
static final int ALPHA_SHIFT
java.awt.Paint getPaint()
Paint object.VGPaint apply(PaintVisitor visitor)
visitor - the visitor to applyVGPaintstatic int applyOpacity(int color,
int alpha)
color - a ARGB coloralpha - the opacity to applystatic int applyOpacity(java.awt.Color color,
int alpha)
color - the source coloralpha - the opacity to apply