views:

33

answers:

0
+1  Q: 

Java tiled paint

I'm writing a game, and I want an area of the screen to have a tiled paint drawn on it. Using a TexturePaint java supports texturing a Shape with a tiled texture, this is really simple and performs pretty well. However, I want my tiled texture to be rotated before drawing it as a fill to the shape - this is theoretically possible by subclassing TexturePaint and applying a transform, However, this performs really badly.

Does java in some way support doing this? If not, is there any reasn that subclassing texturePaint might perform really badly?