Hi  

Had a look at Zach DelProposto solution.


Is it a complete solution?, does it need a particular version of Batik?

I had two problems with it, parts of the screen did not redraw correctly,
sort of white blank areas.  Do I need to add any listeners or enable any
events?


When ever I moved a scroll bar it kicked of a batik event, this is rather
slow way of doing it.  It made scrolling horrible slow.

But it did kill the memory problem.

I did think about convert the image to an pdf/png files scrolling that.

-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2003 10:28
To: Batik Users
Subject: Re: OutOfMemory exception

Hi David,

Potts, David wrote:
> 
> 
> I am developing a tool that displays a SVG image(SVGCanvas), after doing 
> 3-5 enlargements I get an Out of Memory exception, a check with
> 
> freeMemory( )/totalMemory() indicates that there is still a sizable 
> amount memory available

> I am aware that Batik works on an alternative stack is there any way of 
> catching the OutOfMemory exception?

   Someone else posted a response.

> Is there a better solution to scrolling a SVG image than to use a 
> SVGCanvas in a scrollable Panel, I did think about using a JViewport and 
> getting batik to perform the scrolling, but that seems to be using a 
> sledge hammer to crack a walnut?

   Read the archives - subject "JSVGCanvas in JScrollPane again..."
in short Zach DelProposto is working on implementing a scrolling component
on top of the JSVGCanvas - this is the only easy way to avoid the above
problem (you are getting a offscreen buffer the size of the zoomed
document!).

> David.
> 
>  
> 
> 
> 
>
****************************************************************************
*******
> This email, its content and any attachments is PRIVATE AND
> CONFIDENTIAL to TANDBERG Television. If received in error please
> notify the sender and destroy the original message and attachments.
> 
> www.tandbergtv.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]

Reply via email to