Skip navigation links
A C E G H I M O P R S U V 

A

adjustCoordinate(float, float, Rect, float, float) - Method in enum com.theartofdev.edmodo.cropper.Edge
Sets the Edge to the given x-y coordinate but also adjusting for snapping to the image bounds and parent view border constraints.
adjustCoordinate(float) - Method in enum com.theartofdev.edmodo.cropper.Edge
Adjusts this Edge position such that the resulting window will have the given aspect ratio.
AspectRatioUtil - Class in com.theartofdev.edmodo.cropper.util
Utility class for handling calculations involving a fixed aspect ratio.
AspectRatioUtil() - Constructor for class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
 

C

calculateAspectRatio(float, float, float, float) - Static method in class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
Calculates the aspect ratio given a rectangle.
calculateBottom(float, float, float, float) - Static method in class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
Calculates the y-coordinate of the bottom edge given the other sides of the rectangle and an aspect ratio.
calculateHeight(float, float, float) - Static method in class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
Calculates the height of a rectangle given the left and right edges and an aspect ratio.
calculateLeft(float, float, float, float) - Static method in class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
Calculates the x-coordinate of the left edge given the other sides of the rectangle and an aspect ratio.
calculateRight(float, float, float, float) - Static method in class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
Calculates the x-coordinate of the right edge given the other sides of the rectangle and an aspect ratio.
calculateTop(float, float, float, float) - Static method in class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
Calculates the y-coordinate of the top edge given the other sides of the rectangle and an aspect ratio.
calculateWidth(float, float, float) - Static method in class com.theartofdev.edmodo.cropper.util.AspectRatioUtil
Calculates the width of a rectangle given the top and bottom edges and an aspect ratio.
clearImage() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Clear the current image set for cropping.
com.theartofdev.edmodo.cropper - package com.theartofdev.edmodo.cropper
 
com.theartofdev.edmodo.cropper.cropwindow.edge - package com.theartofdev.edmodo.cropper.cropwindow.edge
 
com.theartofdev.edmodo.cropper.cropwindow.handle - package com.theartofdev.edmodo.cropper.cropwindow.handle
 
com.theartofdev.edmodo.cropper.util - package com.theartofdev.edmodo.cropper.util
 
CropImageView - Class in com.theartofdev.edmodo.cropper
Custom view that provides cropping capabilities to an image.
CropImageView(Context) - Constructor for class com.theartofdev.edmodo.cropper.CropImageView
 
CropImageView(Context, AttributeSet) - Constructor for class com.theartofdev.edmodo.cropper.CropImageView
 
CropImageView.CropShape - Enum in com.theartofdev.edmodo.cropper
The possible cropping area shape.
CropImageView.OnGetCroppedImageCompleteListener - Interface in com.theartofdev.edmodo.cropper
Interface definition for a callback to be invoked when image async cropping is complete.
CropImageView.OnSetImageUriCompleteListener - Interface in com.theartofdev.edmodo.cropper
Interface definition for a callback to be invoked when image async loading is complete.
CropOverlayView - Class in com.theartofdev.edmodo.cropper
A custom View representing the crop window and the shaded background outside the crop window.
CropOverlayView(Context) - Constructor for class com.theartofdev.edmodo.cropper.CropOverlayView
 
CropOverlayView(Context, AttributeSet) - Constructor for class com.theartofdev.edmodo.cropper.CropOverlayView
 

E

Edge - Enum in com.theartofdev.edmodo.cropper
Enum representing an edge in the crop window.
EdgePair - Class in com.theartofdev.edmodo.cropper.cropwindow.edge
Simple class to hold a pair of Edges.
EdgePair(Edge, Edge) - Constructor for class com.theartofdev.edmodo.cropper.cropwindow.edge.EdgePair
 

G

getActualCropRect() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Gets the crop window's position relative to the source Bitmap (not the image displayed in the CropImageView).
getActualCropRectNoRotation() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Gets the crop window's position relative to the source Bitmap (not the image displayed in the CropImageView) and the original rotation.
getCoordinate() - Method in enum com.theartofdev.edmodo.cropper.Edge
Gets the coordinate of the Edge
getCroppedImage() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Gets the cropped image based on the current crop window.
getCroppedImage(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Gets the cropped image based on the current crop window.
If image loaded from URI will use sample size to fit in the requested width and height down-sampling if required - optimization to get best size to quality.
getCroppedImageAsync() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Gets the cropped image based on the current crop window.
The result will be invoked to listener set by CropImageView.setOnGetCroppedImageCompleteListener(OnGetCroppedImageCompleteListener).
getCroppedImageAsync(CropImageView.CropShape, int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Gets the cropped image based on the current crop window.
If image loaded from URI will use sample size to fit in the requested width and height down-sampling if required - optimization to get best size to quality.
The result will be invoked to listener set by CropImageView.setOnGetCroppedImageCompleteListener(OnGetCroppedImageCompleteListener).
getCroppedOvalImage() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Gets the cropped circle image based on the current crop selection.
Same as CropImageView.getCroppedImage() (as the bitmap is rectangular by nature) but the pixels beyond the oval crop will be transparent.
getCropShape() - Method in class com.theartofdev.edmodo.cropper.CropImageView
The shape of the cropping area - rectangle/circular.
getCropShape() - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
The shape of the cropping area - rectangle/circular.
getHeight() - Static method in enum com.theartofdev.edmodo.cropper.Edge
Gets the current height of the crop window.
getImageResource() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Returns the integer of the imageResource
getImageUri() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Get the URI of an image that was set by URI, null otherwise.
getScaleType() - Method in class com.theartofdev.edmodo.cropper.CropImageView
Set the scale type of the image in the crop view
getWidth() - Static method in enum com.theartofdev.edmodo.cropper.Edge
Gets the current width of the crop window.

H

Handle - Enum in com.theartofdev.edmodo.cropper.cropwindow.handle
Enum representing a pressable, draggable Handle on the crop window.

I

isNewRectangleOutOfBounds(Edge, Rect, float) - Method in enum com.theartofdev.edmodo.cropper.Edge
Returns whether or not you can re-scale the image based on whether any edge would be out of bounds.
isOutsideFrame(Rect) - Method in enum com.theartofdev.edmodo.cropper.Edge
Determines if this Edge is outside the image frame of the given bounding rectangle.
isOutsideMargin(Rect, float) - Method in enum com.theartofdev.edmodo.cropper.Edge
Determines if this Edge is outside the inner margins of the given bounding rectangle.
isShowProgressBar() - Method in class com.theartofdev.edmodo.cropper.CropImageView
if to show progress bar when image async loading/cropping is in progress.
default: true, disable to provide custom progress bar UI.

M

MIN_CROP_HORIZONTAL_LENGTH - Static variable in enum com.theartofdev.edmodo.cropper.Edge
Minimum distance in pixels that one edge can get to its opposing edge.
MIN_CROP_VERTICAL_LENGTH - Static variable in enum com.theartofdev.edmodo.cropper.Edge
Minimum distance in pixels that one edge can get to its opposing edge.

O

offset(float) - Method in enum com.theartofdev.edmodo.cropper.Edge
Add the given number of pixels to the current coordinate position of this Edge.
onDraw(Canvas) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Draw crop overview by drawing background over image not in the cripping area, then borders and guidelines.
onGetCroppedImageComplete(CropImageView, Bitmap, Exception) - Method in interface com.theartofdev.edmodo.cropper.CropImageView.OnGetCroppedImageCompleteListener
Called when a crop image view has completed loading image for cropping.
If loading failed error parameter will contain the error.
onLayout(boolean, int, int, int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
 
onMeasure(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
 
onRestoreInstanceState(Parcelable) - Method in class com.theartofdev.edmodo.cropper.CropImageView
 
onSaveInstanceState() - Method in class com.theartofdev.edmodo.cropper.CropImageView
 
onSetImageUriComplete(CropImageView, Uri, Exception) - Method in interface com.theartofdev.edmodo.cropper.CropImageView.OnSetImageUriCompleteListener
Called when a crop image view has completed loading image for cropping.
If loading failed error parameter will contain the error.
onSizeChanged(int, int, int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
 
onSizeChanged(int, int, int, int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Initialize the crop window here because we need the size of the view to have been determined.
onTouchEvent(MotionEvent) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
 

P

primary - Variable in class com.theartofdev.edmodo.cropper.cropwindow.edge.EdgePair
 

R

resetCropOverlayView() - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Resets the crop overlay view.
rotateImage(int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Rotates image by the specified number of degrees clockwise.

S

secondary - Variable in class com.theartofdev.edmodo.cropper.cropwindow.edge.EdgePair
 
setAspectRatio(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Sets the both the X and Y values of the aspectRatio.
setAspectRatioX(int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Sets the X value of the aspect ratio; is defaulted to 1.
setAspectRatioY(int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Sets the Y value of the aspect ratio; is defaulted to 1.
setBitmapRect(Rect) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Informs the CropOverlayView of the image's position relative to the ImageView.
setCoordinate(float) - Method in enum com.theartofdev.edmodo.cropper.Edge
Sets the coordinate of the Edge.
setCropShape(CropImageView.CropShape) - Method in class com.theartofdev.edmodo.cropper.CropImageView
The shape of the cropping area - rectangle/circular.
setCropShape(CropImageView.CropShape) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
The shape of the cropping area - rectangle/circular.
setFixedAspectRatio(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Sets whether the aspect ratio is fixed or not; true fixes the aspect ratio, while false allows it to be changed.
setFixedAspectRatio(boolean) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Sets whether the aspect ratio is fixed or not; true fixes the aspect ratio, while false allows it to be changed.
setGuidelines(int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Sets the guidelines for the CropOverlayView to be either on, off, or to show when resizing the application.
setGuidelines(int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Sets the guidelines for the CropOverlayView to be either on, off, or to show when resizing the application.
setImageBitmap(Bitmap) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Sets a Bitmap as the content of the CropImageView.
setImageBitmap(Bitmap, ExifInterface) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Sets a Bitmap and initializes the image rotation according to the EXIT data.

The EXIF can be retrieved by doing the following: ExifInterface exif = new ExifInterface(path);
setImageResource(int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Sets a Drawable as the content of the CropImageView.
setImageUri(Uri) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Deprecated.
Use CropImageView.setImageUriAsync(Uri) for better async handling
setImageUriAsync(Uri) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Sets a bitmap loaded from the given Android URI as the content of the CropImageView.
Can be used with URI from gallery or camera source.
Will rotate the image by exif data.
setInitialAttributeValues(CropImageView.CropShape, float, int, boolean, int, int, float, int, float, float, float, int, float, int, int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
Sets all initial values, but does not call initCropWindow to reset the views.
setOnGetCroppedImageCompleteListener(CropImageView.OnGetCroppedImageCompleteListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Set the callback to be invoked when image async cropping (CropImageView.getCroppedImageAsync()) is complete (successful or failed).
setOnSetImageUriCompleteListener(CropImageView.OnSetImageUriCompleteListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Set the callback to be invoked when image async loading (CropImageView.setImageUriAsync(Uri)) is complete (successful or failed).
setScaleType(ImageView.ScaleType) - Method in class com.theartofdev.edmodo.cropper.CropImageView
Set the scale type of the image in the crop view
setShowProgressBar(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
if to show progress bar when image async loading/cropping is in progress.
default: true, disable to provide custom progress bar UI.
setSnapRadius(float) - Method in class com.theartofdev.edmodo.cropper.CropImageView
An edge of the crop window will snap to the corresponding edge of a specified bounding box when the crop window edge is less than or equal to this distance (in pixels) away from the bounding box edge.
setSnapRadius(float) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
An edge of the crop window will snap to the corresponding edge of a specified bounding box when the crop window edge is less than or equal to this distance (in pixels) away from the bounding box edge.
showGuidelines() - Static method in class com.theartofdev.edmodo.cropper.CropOverlayView
Indicates whether the crop window is small enough that the guidelines should be shown.
snapOffset(Rect) - Method in enum com.theartofdev.edmodo.cropper.Edge
Returns the potential snap offset of snaptoRect, without changing the coordinate.
snapToRect(Rect) - Method in enum com.theartofdev.edmodo.cropper.Edge
Snap this Edge to the given image boundaries.
snapToView(View) - Method in enum com.theartofdev.edmodo.cropper.Edge
Snap this Edge to the given View boundaries.

U

updateCropWindow(float, float, Rect, float) - Method in enum com.theartofdev.edmodo.cropper.cropwindow.handle.Handle
 
updateCropWindow(float, float, float, Rect, float) - Method in enum com.theartofdev.edmodo.cropper.cropwindow.handle.Handle
 

V

valueOf(String) - Static method in enum com.theartofdev.edmodo.cropper.CropImageView.CropShape
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.theartofdev.edmodo.cropper.cropwindow.handle.Handle
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.theartofdev.edmodo.cropper.Edge
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.theartofdev.edmodo.cropper.CropImageView.CropShape
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.theartofdev.edmodo.cropper.cropwindow.handle.Handle
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.theartofdev.edmodo.cropper.Edge
Returns an array containing the constants of this enum type, in the order they are declared.
A C E G H I M O P R S U V 
Skip navigation links