You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Janice Tan <ta...@gmail.com> on 2006/05/31 04:33:33 UTC

Panning problem...

hi,

i realised that when i pan on a transparent background
(canvas.setBackground(new
Color (0,0,0,0)))the canvas seems to redraw over each other while moving
thus leaving a trail like effect. is there a way that i can pan it neatly
and cleanly while having a transparent background.

also, is it possible to clear the canvas that is on the frame of its
contents before another SVG is drawn on it?

thanks!

Re: Panning problem...

Posted by th...@kodak.com.
Hi Janice,

"Janice Tan" <ta...@gmail.com> wrote on 05/30/2006 10:33:33 PM:

> i realised that when i pan on a transparent background (canvas.
> setBackground(new Color (0,0,0,0)))the canvas seems to redraw over each 
other 
> while moving thus leaving a trail like effect. is there a way that i can 
pan 
> it neatly and cleanly while having a transparent background. 

    How are you panning?  Also did you notify Swing that the canvas 
was transparent (JComponent.setOpaque(false))?

> also, is it possible to clear the canvas that is on the frame of its 
contents 
> before another SVG is drawn on it?

    I don't fully follow the question but I suspect the answer is the
same it's the same as above...


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org