@Immutable
public abstract class CropRequirement
extends java.lang.Object
CropRequirement can be expressed in absolute
or relative coordinates.| Modifier and Type | Field and Description |
|---|---|
boolean |
mustBeExact
True if the crop has to be exact.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static CropRequirement |
makeAbsoluteToOrigin(int left,
int top,
int right,
int bottom,
boolean mustBeExact)
Crop requirement based on absolute offsets to the origin plane (left or top).
|
static CropRequirement |
makeAbsoluteToOrigin(android.graphics.Rect cropRect,
boolean mustBeExact)
Crop requirement based on absolute offsets to the origin plane (left or top).
|
static CropRequirement |
makeRelativeToOrigin(float left,
float top,
float right,
float bottom,
boolean mustBeExact)
Relative offsets to crop off the image.
|
static CropRequirement |
makeRelativeToOrigin(android.graphics.RectF cropRect,
boolean mustBeExact)
Relative offsets to crop off the image.
|
abstract java.lang.String |
toString() |
public final boolean mustBeExact
public static CropRequirement makeAbsoluteToOrigin(int left, int top, int right, int bottom, boolean mustBeExact)
mustBeExact - True if the crop has to be exact. Non exact crop can be more efficient.public static CropRequirement makeAbsoluteToOrigin(android.graphics.Rect cropRect, boolean mustBeExact)
mustBeExact - True if the crop has to be exact. Non exact crop can be more efficient.public static CropRequirement makeRelativeToOrigin(float left, float top, float right, float bottom, boolean mustBeExact)
This can be handy if one does not know the absolute dimensions of an image.
mustBeExact - True if the crop has to be exact. Non exact crop can be more efficient.public static CropRequirement makeRelativeToOrigin(android.graphics.RectF cropRect, boolean mustBeExact)
This can be handy if one does not know the absolute dimensions of an image.
mustBeExact - True if the crop has to be exact. Non exact crop can be more efficient.public abstract java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object