public class ImageUtil extends Object
| 构造器和说明 |
|---|
ImageUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BufferedImage |
imageMagnifyRatio(BufferedImage originalImage,
Integer withdRatio,
Integer heightRatio)
按照给点的比例放大图像
当缩减比例小于等于0时不发生任何变化
|
static BufferedImage |
imageResize(BufferedImage originalImage,
Integer width,
Integer height)
重新设定图像的长高宽
|
static BufferedImage |
imageShrinkRatio(BufferedImage originalImage,
Integer withdRatio,
Integer heightRatio)
按照给点的比例缩小图像
当缩减比例小于等于0时不发生任何变化
|
public static BufferedImage imageResize(BufferedImage originalImage, Integer width, Integer height)
originalImage - 图像数据width - 宽height - 高public static BufferedImage imageMagnifyRatio(BufferedImage originalImage, Integer withdRatio, Integer heightRatio)
originalImage - 图像数据withdRatio - 宽度缩减比例heightRatio - 高度缩减比例public static BufferedImage imageShrinkRatio(BufferedImage originalImage, Integer withdRatio, Integer heightRatio)
originalImage - 图像数据withdRatio - 宽度缩减比例heightRatio - 高度缩减比例Copyright © 2016. All rights reserved.