开发者

PHP ImageJPEG method but for Java

开发者 https://www.devze.com 2023-02-01 18:18 出处:网络
I\'m looking for a Java solution to this. I need a Java method that behave exactly the same as php IMAGEJPEG method does.

I'm looking for a Java solution to this. I need a Java method that behave exactly the same as php IMAGEJPEG method does.

开发者_JAVA百科

Thanks in advance.


Here is a really good tutorial on saving images in Java http://download.oracle.com/javase/tutorial/2d/images/examples/.
The specific class you want to look at is ImageIO http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/ImageIO.html
Finally, to adjust quality, take a look at this article http://www.universalwebservices.net/web-programming-resources/java/adjust-jpeg-image-compression-quality-when-saving-images-in-java

0

精彩评论

暂无评论...
验证码 换一张
取 消