imgscalr 介绍
示例代码:
import static org.imgscalr.Scalr.*; public static BufferedImage createThumbnail(BufferedImage img) { // Create quickly, then smooth and brighten it. img = resize(img, Method.SPEED, 125, OP_ANTIALIAS, OP_BRIGHTER); // Let's add a little border before we return result. return pad(img, 4); }
imgscalr 官网
http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/