1、JAVA图像缩放处理今天在网上看到了一篇关于JAVA图像处理的文章,博主贴出了一个处理类:特点是高品质缩小,具体代码如下:import java.awt.image.BufferedImage;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import javax.imageio.ImageIO;public class ImageScale { private int width; private int height;
2、 private int scaleWidth; double support = (double) 3.0; double[] contrib; double[] normContrib; double[] tmpContrib; int startContrib, stopContrib; int nDots; int nHalfDots; public BufferedImage imageZoomOut(BufferedImage srcBufferImage, int w, int
3、 h, boolean lockScale) { width = srcBufferImage.getWidth(); height = srcBufferImage.getHeight(); scaleWidth = w; if (lockScale) { h = w * height / width; } if (DetermineResultSize(w, h) == 1) { return srcBufferI