[OpenJDK 2D-Dev] JPEGImageEncoder inquiry...
Brian Burkhalter
Brian.Burkhalter at Sun.COM
Tue Aug 18 19:52:49 UTC 2009
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<jp4work at gmail.com> 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
>^..^< >^..^<
More information about the 2d-dev
mailing list