-
public class CropImageView.CropResultResult data of crop image.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisSuccessfulprivate final BitmaporiginalBitmapprivate final UrioriginalUriprivate final Bitmapbitmapprivate final UriuriContentprivate final Exceptionerrorprivate final FloatArraycropPointsprivate final RectcropRectprivate final RectwholeImageRectprivate final Integerrotationprivate final IntegersampleSize
-
Method Summary
Modifier and Type Method Description final BooleangetIsSuccessful()final BitmapgetOriginalBitmap()The image bitmap of the original image loaded for cropping. final UrigetOriginalUri()The Android uri of the original image loaded for cropping. final BitmapgetBitmap()The cropped image bitmap result. final UrigetUriContent()The Android uri of the saved cropped image result. final ExceptiongetError()The error that failed the loading/cropping (null if successful). final FloatArraygetCropPoints()The 4 points of the cropping window in the source image. final RectgetCropRect()The rectangle of the cropping window in the source image. final RectgetWholeImageRect()The rectangle of the source image dimensions. final IntegergetRotation()The final rotation of the cropped image relative to source. final IntegergetSampleSize()Sample size used creating the crop bitmap to lower its size. final BitmapgetBitmap(Context context)The cropped image bitmap result. final StringgetUriFilePath(Context context, Boolean uniqueName)The file path of the image to load Null if you get cropped image was executed, no output requested or failure. -
-
Method Detail
-
getIsSuccessful
final Boolean getIsSuccessful()
-
getOriginalBitmap
final Bitmap getOriginalBitmap()
The image bitmap of the original image loaded for cropping.<br></br> Null if uri used to load image or activity result is used.
-
getOriginalUri
final Uri getOriginalUri()
The Android uri of the original image loaded for cropping.<br></br> Null if bitmap was used to load image.
-
getBitmap
final Bitmap getBitmap()
The cropped image bitmap result.<br></br> Null if save cropped image was executed, no output requested or failure.
-
getUriContent
final Uri getUriContent()
The Android uri of the saved cropped image result.<br></br> Null if get cropped image was executed, no output requested or failure.
This is NOT the file path, please use getUriFilePath
-
getError
final Exception getError()
The error that failed the loading/cropping (null if successful).
-
getCropPoints
final FloatArray getCropPoints()
The 4 points of the cropping window in the source image.
-
getCropRect
final Rect getCropRect()
The rectangle of the cropping window in the source image.
-
getWholeImageRect
final Rect getWholeImageRect()
The rectangle of the source image dimensions.
-
getRotation
final Integer getRotation()
The final rotation of the cropped image relative to source.
-
getSampleSize
final Integer getSampleSize()
Sample size used creating the crop bitmap to lower its size.
-
getBitmap
final Bitmap getBitmap(Context context)
The cropped image bitmap result.<br></br> Null if save cropped image was executed, no output requested or failure.
context used to retrieve the bitmap in case you need from activity result
-
getUriFilePath
final String getUriFilePath(Context context, Boolean uniqueName)
The file path of the image to load Null if you get cropped image was executed, no output requested or failure.
context used to access Android APIs, like content resolve, it is your activity/fragment/widget. uniqueName If true, make each image cropped have a different file name, this could cause memory issues, use wisely.
-
-
-
-