How to fast texture paint ?
Hi , I want to drawing the IC layout and each layer with specific texture.
I have tried using TexturePaint in Java2D, but it is really very slow. Can anybody give me a help ?
I think the solution is :
(1) create a BufferedImage with transparent support color model
(2) fill the texture to the buffered image.
(3) using "Mask" to select what region in the buffered Image I want. Much like the clip() method in graphics.
(4) draw this buffered Image to the canvas
I hope the BufferedImage using very small memory because I only use 1 color in this image. I hope it can be reuse when drawing to different layer.