Antialiasing edges of composited images
I have a tricky (but interesting) little problem regarding antiliasing & compositing of two images.
The foreground image has been PerspectiveTransformed using JAI and the result has very jagged edges even with the KEY_ANTIALIASING=VALUE_ANTIALIAS_ON rendering hint - it seems that this rendering hint applies to primitive types only (ie. lines, elipses etc)???
All I am trying to do is to superimpose this image onto a background image and smooth the jaggies at the same time.
I have come across a few articles that talk about removing jaggies using a soft clipping technique (eg. http://weblogs.java.net/blog/campbell/archive/2006/07/java_2d_tricker.html), but I can't work out how to do the same thing with pre-rendered, irregular shaped images containing transparent areas (also with jagged edges).
Any ideas would be gratefully received.