Aliasing artifacts with PerspectiveTransform
I've written a small JAI program that perspectively transforms an arbitrary image on the command line and makes a PNG with transparent (alpha-channel) background out of it (PerspectiveTransform -> Warp -> BufferedImage). I have two problems though:
1) There are aliasing artifacts on the borders (jagged, stair-style) despite using a KEY_ANTIALIAS_ON in RenderingHints and passing it to the Warp and everywhere else that I could think of. I.e. PovRay or AGG render the same smoothly, however both have other limitations which is why I'm trying to do it with JAI at the moment.
2) The general quality post-perspective-transform is not so good. I've tried all interpolation methods up to bicubic and there's still visible artifacts e.g. when text is contained in the image.
Has anyone had the same problems? Or any ideas that might help in this situation?
Thanks for any help,