public class TexturePaint extends 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 |
|---|---|
Rectangle2D |
anchor
Sets a copy of the anchor rectangle which positions and sizes the textured image. |
String |
class
Creates an instance of a TexturePaint. |
int |
transparency
Sets the type of this Transparency. |
public String class
TexturePaint.
class : "java.awt.TexturePaint(image,anchor)";public 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 Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.