Hi, It works fine now. I disabled the double buffering on the renderer and called a repaint. Previously, the offscreen buffer had parts of previous offscreen image even though I called clearOffscreen and flush. Thomas, may be you can update the wiki page to disable the doublebuffering on the renderer. This was happening when I change the transforms of the renderer. Please, correct me if I sound wrong.
Thanks, Javid -----Original Message----- From: Tonny Kohar [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 7:39 PM To: [email protected] Subject: RE: Batik offscreen rendering howto? Hi, On Sun, 2006-03-05 at 23:39 -0600, Javid Alimohideen wrote: > Hi Thomas, > Now my offscreen renderer works, I have started to implement the soom and > pan functionality for my display canvas. I think it would be very difficult > to achienve the zoom/pan functionality of JSVGCanvas but I am trying to do > something little close. So, I calculate a scale from the mouse start to end > positions and perform a Scale AffineTransform and update it to the renderer > transform. This is what my code look like: I am not sure if this will works. Did you call the renderer.updateOffScreen(int width, int height) after setting the transform Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
