java.awt
public class TexturePaint extends Object implements Paint
Constructor Summary | |
---|---|
TexturePaint(BufferedImage texture, Rectangle2D anchor)
Constructor.
|
Method Summary | |
---|---|
PaintContext | createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
Creates the context used to paint the texture.
|
Rectangle2D | getAnchorRect()
Gets the shape anchor.
|
BufferedImage | getImage()
Gets the texture image.
|
int | getTransparency()
Returns the transparency mode.
|
Parameters: texture - the texture anchor - the shape
Parameters: cm - the ColorModel that receives the Paint data. Used only as a hint. deviceBounds - the device space being rendered. userBounds - the user space being rendered xform - the AffineTransform from user space into device space hints - a RenderingHints object that is used to specify how the pattern is rendered
Returns: the paint context used to paint the texture
Returns: the shape anchor
Returns: the texture
Returns: the transparency mode.