[JAI] Adding white border to images
I've begun using JAI recently. The aim of the project is to
scale and crop images of any size to
a fixed width and height - thereby creating thumbnails (all
in the same size) of the images.
All is done automatically.
Now, for images which are smaller than the size I want for
my thumbnails, I need to have the option to either
1. scale up the image and then crop
2. don't scale up - instead add some white border where
needed (that is, merging the orginal image with some white
background). Then crop, if needed.
How can I achieve the second option using JAI?
/best regards, Håkan Jacobsson - System developer in Sweden