public class TexturePaint extends java.lang.Object implements Paint, Transparency
Shape with a texture that is
specified as a BufferedImage.
texturePaint {
class : "java.awt.TexturePaint(image,anchor)";
anchor : "@#rectangle2D";
transparency : "OPAQUE";
}
| Modifier and Type | Property and Description |
|---|---|
java.awt.geom.Rectangle2D |
anchor
Sets a copy of the anchor rectangle which positions and sizes the textured image. |
java.lang.String |
class
Creates an instance of a TexturePaint. |
int |
transparency
Sets the type of this Transparency. |
public java.lang.String class
TexturePaint.
class : "java.awt.TexturePaint(image,anchor)";public java.awt.geom.Rectangle2D anchor
anchor : "@#rectangle2D";Rectangle2D for an example of implementing an anchor.public int transparency
Transparency.
transparency : "OPAQUE";| Allowed values: | ||
OPAQUE |
represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0. | |
BITMASK |
represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0. | |
TRANSLUCENT |
represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0. |
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.