public abstract static class Options.Builder<T extends Options.Builder<T>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
configuration |
protected CropRequirement |
cropRequirement |
protected EncodeRequirement |
encodeRequirement |
protected ImageMetadata |
metadata |
protected ImagePixelSpecification |
outputPixelSpecification |
protected ResizeRequirement |
resizeRequirement |
protected RotateRequirement |
rotateRequirement |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract Options |
build() |
T |
configuration(Configuration configuration)
Options in the configuration object will override default and app-wide settings.
|
T |
crop(CropRequirement cropRequirement)
The crop requirement to apply.
|
T |
cropAbsoluteToOrigin(int left,
int top,
int right,
int bottom,
boolean mustBeExact)
The crop requirement to apply.
|
T |
cropRelativeToOrigin(float left,
float top,
float right,
float bottom,
boolean mustBeExact)
The crop requirement to apply.
|
T |
resize(ResizeRequirement.Mode mode,
ImageSize targetSize)
The resize requirement to apply.
|
T |
resize(ResizeRequirement.Mode mode,
int sideLength)
The resize requirement to apply.
|
T |
resize(ResizeRequirement resizeRequirement)
The resize requirement to apply.
|
T |
rotate(int degrees)
The rotates the image by the given amount of degrees.
|
T |
rotate(int degrees,
boolean flipHorizontally,
boolean flipVertically,
boolean forceUpOrientation)
The rotate requirement to apply.
|
T |
rotate(RotateRequirement rotateRequirement)
The rotate requirement to apply.
|
@Nullable protected EncodeRequirement encodeRequirement
@Nullable protected ResizeRequirement resizeRequirement
@Nullable protected RotateRequirement rotateRequirement
@Nullable protected CropRequirement cropRequirement
@Nullable protected ImageMetadata metadata
@Nullable protected Configuration configuration
@Nullable protected ImagePixelSpecification outputPixelSpecification
public T configuration(Configuration configuration)
public T resize(ResizeRequirement resizeRequirement)
public T resize(ResizeRequirement.Mode mode, ImageSize targetSize)
ResizeRequirement.ResizeRequirement(ResizeRequirement.Mode, ImageSize)public T resize(ResizeRequirement.Mode mode, int sideLength)
ResizeRequirement.ResizeRequirement(ResizeRequirement.Mode, int)public T crop(CropRequirement cropRequirement)
public T cropAbsoluteToOrigin(int left, int top, int right, int bottom, boolean mustBeExact)
CropRequirement.makeAbsoluteToOrigin(int, int, int,
int, boolean)public T cropRelativeToOrigin(float left, float top, float right, float bottom, boolean mustBeExact)
CropRequirement.makeRelativeToOrigin(float, float,
float, float, boolean)public T rotate(RotateRequirement rotateRequirement)
public T rotate(int degrees, boolean flipHorizontally, boolean flipVertically, boolean forceUpOrientation)
RotateRequirement.RotateRequirement(int, boolean,
boolean, boolean)public T rotate(int degrees)
RotateRequirement.RotateRequirement(int)public abstract Options build()