[OpenJDK 2D-Dev] Issue with ImageIO for non-zero minY

Derek Chen-Becker dbecker at cpicorp.com
Wed Aug 6 15:31:15 UTC 2008


Hi,
     I have a piece of code that uses JAI to do some image ops and uses 
ImageIO to load and store the source/results, respectively. Recently I 
tried to set it up to use ImageWriteParam to override the default JPEG 
compression. When I do that, the image gets truncated. You can see the 
original thread (and a self-contained test code) here:

http://forums.java.net/jive/thread.jspa?messageID=291068

I tried the workaround of doing a transform of (-minX, -minY) right 
after the crop and that fixed it, but it seems like that shouldn't be a 
requirement.

Thanks,

Derek

-- 
----------------------------------------------------------------------
Derek Chen-Becker
Senior Network Engineer, Security Architect
CPI Corp, Inc.
1706 Washington Ave
St. Louis, MO 63103
Phone: 314-231-7711 x6455
Fax:   314-613-6724
dbecker at cpicorp.com
PGP Key available from public key servers
Fingerprint: E4C4 26C0 8588 E80A C29F  636D 1FBE 0FE3 2871 4AE8
----------------------------------------------------------------------



More information about the 2d-dev mailing list