public class TransformedTexturePaint extends Objectimplements Paint
TexturePaint to support arbitrary
AffineTransforms inside this paint object.
This does not technically extend the TexturePaint class, although it does relay most calls to an internal TexturePaint. This is because some graphics pipelines (notably Java 1.4 on Mac) will fail to work the paint context correctly if this class officially extends TexturePaint.
BITMASK, OPAQUE, TRANSLUCENT| Constructor and Description |
|---|
TransformedTexturePaint(BufferedImage
|
| Modifier and Type | Method and Description |
|---|---|
PaintContext |
createContext(ColorModel
|
Rectangle2D |
getAnchorRect()
|
BufferedImage |
getImage()
|
AffineTransform |
getTransform()
|
int |
getTransparency()
|
public TransformedTexturePaint(BufferedImagetxtr, Rectangle2D anchor, AffineTransform transform)
public AffineTransformgetTransform()
public PaintContextcreateContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
public Rectangle2DgetAnchorRect()
public BufferedImagegetImage()
public int getTransparency()