How do I render multiple sub-images from a single image?

View: New views
2 Messages — Rating Filter:   Alert me  

How do I render multiple sub-images from a single image?

by Daniel Noll-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all.

I am considering using XML Graphics Commons as the image rendering
abstraction for our application - we'll be rendering both raster and
vector formats to raster and vector destinations, so it seems like a
reasonable fit.  I'm not interested in using the flavour conversion
side of things yet, but that might come further down the track if it
happens to be convenient.

In any case, the first thing to do is confirm that it has all the
functionality we are using from ImageIO, and presently I'm wondering
how I'm supposed to handle image formats which contain multiple images
(GIF, TIFF, and whatever other formats might come along.)

I can see that if ImageInfo#getCustomObjects() has a HAS_MORE_IMAGES
which either has an Integer or Boolean.TRUE value, then there are more
images.  However I can't for the life of me figure out how to render
these.  I even found SubImageNotFoundException which would appear to
be related to enumerating these, but the Javadocs report no usages of
this class.

Am I missing something, or is this not yet supported?

Daniel


--
Daniel Noll                            Forensic and eDiscovery Software
Senior Developer                              The world's most advanced
Nuix                                                email data analysis
http://nuix.com/                                and eDiscovery software

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@...
For additional commands, e-mail: general-help@...


Re: How do I render multiple sub-images from a single image?

by Jeremias Maerki-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Daniel,
this is probably hopelessly too late but an example of handling multiple
images in one file can be found here:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/ExternalDocumentLayoutManager.java?revision=HEAD
(see method "activateLayout()")

On 24.06.2009 06:01:15 Daniel Noll wrote:

> Hi all.
>
> I am considering using XML Graphics Commons as the image rendering
> abstraction for our application - we'll be rendering both raster and
> vector formats to raster and vector destinations, so it seems like a
> reasonable fit.  I'm not interested in using the flavour conversion
> side of things yet, but that might come further down the track if it
> happens to be convenient.
>
> In any case, the first thing to do is confirm that it has all the
> functionality we are using from ImageIO, and presently I'm wondering
> how I'm supposed to handle image formats which contain multiple images
> (GIF, TIFF, and whatever other formats might come along.)
>
> I can see that if ImageInfo#getCustomObjects() has a HAS_MORE_IMAGES
> which either has an Integer or Boolean.TRUE value, then there are more
> images.  However I can't for the life of me figure out how to render
> these.  I even found SubImageNotFoundException which would appear to
> be related to enumerating these, but the Javadocs report no usages of
> this class.
>
> Am I missing something, or is this not yet supported?
>
> Daniel
>



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@...
For additional commands, e-mail: general-help@...