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#setSourceSubsampling(int,%20int,%20int,%20int)

On Aug 18, 2009, at 12:32 PM, Adam Augusta wrote:

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<[email protected]> wrote:

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 above JPEGImageEncoder
? My purpose is just for .jpeg image saving.


Best Regards
JIA Pei

--
Welcome to Vision Open
http://www.visionopen.com


Brian

>^..^<    >^..^<

Reply via email to