public class CropRect
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
Edge |
bottom |
static android.os.Parcelable.Creator<CropRect> |
CREATOR |
protected android.graphics.Rect |
imageRect |
Edge |
left |
static int |
MIN_CROP_LENGTH_PX |
Edge |
right |
protected android.graphics.Rect |
stageRect |
Edge |
top |
| Modifier | Constructor and Description |
|---|---|
|
CropRect() |
protected |
CropRect(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
float |
getHeight()
Gets the current height of the crop window.
|
android.graphics.Rect |
getImageRect() |
RelativeRect |
getRelativeCropRegion() |
RelativeRect |
getRelativeImageRect() |
android.graphics.Rect |
getStageRect() |
float |
getWidth()
Gets the current width of the crop window.
|
int |
hashCode() |
void |
setRelativeCrop(RelativeRect relativeCrop) |
void |
setStageAndImageRect(android.graphics.Rect stageRect,
android.graphics.Rect imageRect) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int MIN_CROP_LENGTH_PX
public static final android.os.Parcelable.Creator<CropRect> CREATOR
public Edge top
public Edge left
public Edge right
public Edge bottom
protected android.graphics.Rect imageRect
protected android.graphics.Rect stageRect
public float getWidth()
public float getHeight()
public void setStageAndImageRect(android.graphics.Rect stageRect,
android.graphics.Rect imageRect)
public android.graphics.Rect getImageRect()
public android.graphics.Rect getStageRect()
public RelativeRect getRelativeImageRect()
public RelativeRect getRelativeCropRegion()
public void setRelativeCrop(RelativeRect relativeCrop)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable