Title: 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

Reply via email to