Package 

Class CropImageView.CropResult

    • Method Detail

      • 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).

      • getCropRect

         final Rect getCropRect()

        The rectangle of the cropping window in the source image.

      • 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.