标签:style blog color os io ar for 文件 div
Iterator<ImageWriter> iterator = ImageIO.getImageWritersByFormatName("jpeg"); ImageWriter imageWriter = iterator.next(); ImageWriteParam imageWriteParam = imageWriter.getDefaultWriteParam(); imageWriteParam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT); imageWriteParam.setCompressionQuality(1); imageWriter.setOutput(imageOutput); IIOImage iio_image = new IIOImage(image, null, null); imageWriter.write(null, iio_image, imageWriteParam); imageWriter.dispose();
ImageIO.wtrie生成jpg图片质量损失方案:BufferedImage生成jpg图片文件流
标签:style blog color os io ar for 文件 div
原文地址:http://www.cnblogs.com/rubekid/p/3955050.html