Preserved Topic: Java image resizing: antialiasing trouble (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Milwaukee |
posted 12-16-2003 21:26
My current issue is as simple as they come: I can read in a JPEG image, and resize it, and write it back out, but the final image is jaggy even though I've set rendering hints. Here's some of the relevant code... code: // used Graphics2D to read in an Image object startingImage (ImageIO.read gave me odd colors)
|
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 12-17-2003 09:43
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 12-17-2003 10:23
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: Milwaukee |
posted 12-17-2003 14:24
Thanks for the response, InI! After I posted this, I came across the bilinear interpolation rendering hint you suggested, and the BufferedImageOp superclass (of which AffineTransformOp is my baby). I made a post on Sun's Java forums showing my current code. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 12-17-2003 15:52
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: Milwaukee |
posted 12-17-2003 16:13
I'll ask on cfxweb, thanks for the invitation... and I guess it wouldn't be too terrible to write my own renderer, since speed and efficiency aren't huge issues in this case. But if someone has working code already, I'll try to get that first. |