Re: [OpenJDK 2D-Dev] JPEGImageEncoder inquiry...

2009-08-19 Thread Brian Burkhalter
http://java.sun.com/javase/6/docs/api/javax/imageio/ImageIO.html#write(java.awt.image.RenderedImage,%20java.lang.String,%20java.io.File) On Aug 18, 2009, at 8:28 PM, JIA Pei wrote: Hi, Dear Brian Burkhalter: Thank you so much for you kind reply. May I ask for a simple code from you to save a

Re: [OpenJDK 2D-Dev] JPEGImageEncoder inquiry...

2009-08-18 Thread Brian Burkhalter
Decimation subsampling may be specified for both readers and writers, using a movable subsampling grid. http://java.sun.com/javase/6/docs/api/javax/imageio/IIOParam.html Specifies a decimation subsampling to apply on I/O. http://java.sun.com/javase/6/docs/api/javax/imageio/IIOParam.html#setSo

Re: [OpenJDK 2D-Dev] JPEGImageEncoder inquiry...

2009-08-18 Thread Adam Augusta
ImageIO has a quantization level, but if you want to use the other features of the Sun encoder like horizontal/vertical subsampling, for example, I think you're out of luck. Sorry. On Tue, Aug 18, 2009 at 2:49 PM, JIA Pei wrote: > > Hi, Dear All: > > I happened to notice there is some differences

Re: [OpenJDK 2D-Dev] JPEGImageEncoder inquiry...

2009-08-18 Thread Brian Burkhalter
Hello. Assuming you are using at least Java 1.4 should be able to use the Image I/O API: http://java.sun.com/j2se/1.5.0/docs/guide/imageio/ On Aug 18, 2009, at 11:49 AM, JIA Pei wrote: Hi, Dear All: I happened to notice there is some differences between SUN JDK and OpenJDK. In fact, I'

[OpenJDK 2D-Dev] JPEGImageEncoder inquiry...

2009-08-18 Thread JIA Pei
Hi, Dear All: I happened to notice there is some differences between SUN JDK and OpenJDK. In fact, I'm using "JPEGImageEncoder", which seems to be supported well by SUN JDK but not by OpenJDK. Especially, the function "setJPEGEncodeParam". So, I'm wondering if JAI+JAI ImageIO can replace the abov