You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Rob Stote <RS...@whitehilltech.com> on 2003/06/19 19:17:35 UTC
Adding an image to the end of a tiff file:
Hello:
Oleg this should probably be directed at you.... I was wondering if
you could provide a snippet of code for adding extra images to the result of
the TIFFRenderer. I notice that the Renderer can be configured to append or
pre-pend images to the tiff produced. I understand form code how to set this
parameter.
Where I am stumped is, if I have an image file on disk (lets say it
is a tiff as well), How do I get the contents of the file, into the Iterator
as a RenderedImage. I am not that familiar with the imaging API. Or more
succinctly, how do I create a BufferedImage from a file on disk. Once I have
this I know how to put that into the Iterator.
Example of what I have:
TIFFRendererParams params = new TIFFRendererParams();
params.setCompression(TIFFRendererParams.COMPRESSION_GROUP4);
params.setWriteTiled(false);
Params.setExtraImages(//Iterator of images, EXTRA_IMAGES_AFTER);.
Rob