public abstract class EPic extends Object
| 构造器和说明 |
|---|
EPic() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract BufferedImage |
compress(String srcPath,
Float quality) |
abstract BufferedImage |
compress(String srcPath,
Float quality,
Float scale) |
abstract BufferedImage |
compress(String srcPath,
Float quality,
Integer width,
Integer height) |
abstract void |
compress(String srcPath,
String destPath,
Float quality)
更改图片质量
|
abstract void |
compress(String srcPath,
String destPath,
Float quality,
Float scale)
等比例缩放图片
|
abstract void |
compress(String srcPath,
String destPath,
Float quality,
Integer width,
Integer height)
等比例调整图片大小
|
abstract BufferedImage |
compressFree(String srcPath,
Float quality,
Integer width,
Integer height) |
abstract void |
compressFree(String srcPath,
String destPath,
Float quality,
Integer width,
Integer height)
自由调整图片大小,不考虑图片是否失真
|
public abstract void compress(String srcPath, String destPath, Float quality)
srcPath - 源图片路径destPath - 输出图片路径quality - 输出图片质量(0-1)public abstract BufferedImage compress(String srcPath, Float quality)
public abstract void compress(String srcPath, String destPath, Float quality, Float scale)
srcPath - 源图片路径destPath - 输出图片路径quality - 输出图片质量(0-1)scale - 缩放率public abstract BufferedImage compress(String srcPath, Float quality, Float scale)
public abstract void compress(String srcPath, String destPath, Float quality, Integer width, Integer height)
srcPath - 源图片路径destPath - 输出图片路径quality - 输出图片质量(0-1)width - 宽度height - 高度
说明:如果原图的宽度和高度都小于指定值,则输出图不做调整;如果宽度小于指定值高度大于指定值,则高度缩小到指定值,宽度按比例变小public abstract BufferedImage compress(String srcPath, Float quality, Integer width, Integer height)
public abstract void compressFree(String srcPath, String destPath, Float quality, Integer width, Integer height)
srcPath - 源图片路径destPath - 输出图片路径quality - 输出图片质量(0-1)width - 宽度height - 高度public abstract BufferedImage compressFree(String srcPath, Float quality, Integer width, Integer height)
Copyright © 2020. All rights reserved.