- 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
-
- 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
-
- getCroppedImageAsync(CropImageView.CropShape, int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- 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.
- 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
-
- 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
-
- setOnSetImageUriCompleteListener(CropImageView.OnSetImageUriCompleteListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- 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.