Painting over  
Author Message
Nnnnaz





PostPosted: 2006-5-6 22:48:00 Top

java-programmer, Painting over Hello,

I have written code to generate "Fractal Landscap", we can consider that
it is set of painted in different colors ovals.

Now I would like to paint ON IT. I mean paint star in one part of
"Fractal Landscape", than remove this star and paint it somewhere else.

I dont want to repaint() "Fractal Landscape" because it is very slow,
how to paint on it, without replacing content of Landscape.

thx

M
 
Knute Johnson





PostPosted: 2006-5-7 0:15:00 Top

java-programmer >> Painting over Nnnnaz wrote:
> Hello,
>
> I have written code to generate "Fractal Landscap", we can consider that
> it is set of painted in different colors ovals.
>
> Now I would like to paint ON IT. I mean paint star in one part of
> "Fractal Landscape", than remove this star and paint it somewhere else.
>
> I dont want to repaint() "Fractal Landscape" because it is very slow,
> how to paint on it, without replacing content of Landscape.
>
> thx
>
> M

Draw your fractal on a BufferedImage then draw the BufferedImage on a
component. When you need to redraw part of your fractal, get it from
the BufferedImage.

--

Knute Johnson
email s/nospam/knute/