public static class ImagePicker.CropConfigBuilder
extends java.lang.Object
构造器和说明 |
---|
CropConfigBuilder() |
限定符和类型 | 方法和说明 |
---|---|
ImagePicker.CropConfigBuilder |
aspect(int aspectX,
int aspectY)
设置裁剪图片比例
|
ImagePicker.CropConfigBuilder |
faceDetection(boolean faceDetection)
设置是否需要人脸识别(如果默认支持的话)
|
ImagePicker.CropConfigBuilder |
inputFile(java.io.File file)
设置裁剪源文件,仅在只做裁剪时设置才有效,否则都采用图片选择器的输出文件作为裁剪输入文件
|
ImagePicker.CropConfigBuilder |
outputFile(java.io.File file)
设置输出文件
|
ImagePicker.CropConfigBuilder |
outputSize(int outputX,
int outputY)
设置裁剪输出图片大小
|
public ImagePicker.CropConfigBuilder aspect(int aspectX, int aspectY)
aspectX
- xaspectY
- ypublic ImagePicker.CropConfigBuilder outputSize(int outputX, int outputY)
outputX
- x(px)outputY
- y(px)public ImagePicker.CropConfigBuilder faceDetection(boolean faceDetection)
faceDetection
- booleanpublic ImagePicker.CropConfigBuilder inputFile(java.io.File file)
file
- 输入文件public ImagePicker.CropConfigBuilder outputFile(java.io.File file)
file
- 输出文件