java - IMAGE EXCEPTION -
jpegimageencoder encoder = jpegcodec.createjpegencoder(out); jpegencodeparam param = encoder.getdefaultjpegencodeparam(bi); jpegimagedecoder decoder = jpegcodec.createjpegdecoder(in);'
when compile code above says com.sun.image.codec.jpeg.jpegcodec
api may have been removed. how clear warning? using java version 6.
simply use imageio reading/writing , maybe encoding. encoding parametrisation might not sun's implementation.
and yes, not every jdk/jre goes sun classes. portability issue.
Comments
Post a Comment