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 Fabio Biscaro <bi...@webscience.it> on 2004/06/07 11:24:20 UTC

Image reader

Hi! How can I use batik classes to read a png file?

Squiggle is able to read images very well!

Thanks,
fabio



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


R: Image reader

Posted by Fabio Biscaro <bi...@webscience.it>.
Thanks! Very useful!

fabio

-----Messaggio originale-----
Da: Cameron McCormack [mailto:cam-batik-users@aka.mcc.id.au] 
Inviato: lunedì 7 giugno 2004 11.39
A: 'Batik Users'
Oggetto: Re: Image reader


Hi Fabio.

Fabio Biscaro:
> Hi! How can I use batik classes to read a png file?
> 
> Squiggle is able to read images very well!

If you look in the org/apache/batik/bridge/SVGImageElementBridge.java
file you can see that it uses the readURL method of
org.apache.batik.ext.awt.image.spi.ImageTagRegistry to return a
java.awt.image.renderable.RenderableImage that you can use to render any
of the image types that Batik supports.

Hope this helps,

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922

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



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


Re: Image reader

Posted by Cameron McCormack <ca...@aka.mcc.id.au>.
Hi Fabio.

Fabio Biscaro:
> Hi! How can I use batik classes to read a png file?
> 
> Squiggle is able to read images very well!

If you look in the org/apache/batik/bridge/SVGImageElementBridge.java
file you can see that it uses the readURL method of
org.apache.batik.ext.awt.image.spi.ImageTagRegistry to return a
java.awt.image.renderable.RenderableImage that you can use to render any
of the image types that Batik supports.

Hope this helps,

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922

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