xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: How do I render multiple sub-images from a single image?
Date Thu, 23 Jul 2009 14:17:36 GMT
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@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message