xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Increase Image Loading performance
Date Sun, 08 Apr 2007 12:51:06 GMT
Hi Henric,

"Henric Rosvall" <henric@opv.se> wrote on 04/04/2007 04:52:06 AM:

> I need to load a huge amount of images of different formats into a 
> subclassed JSVGCanvas.
> Currently I go about it in the following way: If it's a format that 
> the canvas can't handle, I use an Image-component (ImageRO) to load 
> the image into a BufferedImage.

   If you have code to do this you should be able to simply plug
this into Batik's Image loading system.  Take a look at:

   Also if you look at the 

   For what needs to happen.

   Also if you have Java Image I/O implementations of your
readers you can plug those in as well.

> Then i extract the binary data from 
> the image, and convert it into a PNG-image, which is then byte64-
> encoded into a string which is inserted into an Image-element (then 
> the JSVGCanvas loads the data, base64-decodes it, and then render it
> onto the canvas).
> As you can imagine, all of these operations and conversions require 
> quite alot of power and CPU-time, so I was wondering if you have 
> some better solution for inserting an image that doesn't require 
> quite as many steps and conversions?
> Regards
> Henric Rosvall

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

View raw message