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

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -