public static class CropImageView.CropResult
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
getBitmap()
The cropped image bitmap result.
Null if save cropped image was executed, no output requested or failure. |
float[] |
getCropPoints()
The 4 points of the cropping window in the source image
|
android.graphics.Rect |
getCropRect()
The rectangle of the cropping window in the source image
|
java.lang.Exception |
getError()
The error that failed the loading/cropping (null if successful)
|
android.graphics.Bitmap |
getOriginalBitmap()
The image bitmap of the original image loaded for cropping.
Null if uri used to load image or activity result is used. |
android.net.Uri |
getOriginalUri()
The Android uri of the original image loaded for cropping.
Null if bitmap was used to load image. |
int |
getRotation()
The final rotation of the cropped image relative to source
|
int |
getSampleSize()
sample size used creating the crop bitmap to lower its size
|
android.net.Uri |
getUri()
The Android uri of the saved cropped image result Null if get cropped image was executed, no
output requested or failure.
|
android.graphics.Rect |
getWholeImageRect()
The rectangle of the source image dimensions
|
boolean |
isSuccessful()
Is the result is success or error.
|
public android.graphics.Bitmap getOriginalBitmap()
public android.net.Uri getOriginalUri()
public boolean isSuccessful()
public android.graphics.Bitmap getBitmap()
public android.net.Uri getUri()
public java.lang.Exception getError()
public float[] getCropPoints()
public android.graphics.Rect getCropRect()
public android.graphics.Rect getWholeImageRect()
public int getRotation()
public int getSampleSize()