- getActivityResult(Intent) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
- getAspectRatio() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
both the X and Y values of the aspectRatio.
- getAspectRatioX() - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
the X value of the aspect ratio;
- getAspectRatioY() - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
the Y value of the aspect ratio;
- getBitmap() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The cropped image bitmap result.
Null if save cropped image was executed, no output requested or failure.
- getCameraIntents(Context, PackageManager) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Get all Camera intents for capturing image using device camera apps.
- getCaptureImageOutputUri(Context) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Get URI to image received from capture by camera.
- 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
-
- getCroppedImage(int, int, CropImageView.RequestSizeOptions) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Gets the cropped image based on the current crop window.
- getCroppedImageAsync() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- getCroppedImageAsync(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- getCroppedImageAsync(int, int, CropImageView.RequestSizeOptions) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- getCropPoints() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The 4 points of the cropping window in the source image
- getCropPoints() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Gets the 4 points of crop window's position relative to the source Bitmap (not the image
displayed in the CropImageView) using the original image rotation.
Note: the 4 points may not be a rectangle if the image was rotates to NOT stright angle (!= 90/180/270).
- getCropRect() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The rectangle of the cropping window in the source image
- getCropRect() - 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) using the original image rotation.
- 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.
- getCropWindowRect() - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Get the left/top/right/bottom coordinates of the crop window.
- getError() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The error that failed the loading/cropping (null if successful)
- getGalleryIntents(PackageManager, String, boolean) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Get all Gallery intents for getting image from one of the apps of the device that handle images.
- getGuidelines() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Get the current guidelines option set.
- getGuidelines() - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Get the current guidelines option set.
- 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.
- getInitialCropWindowRect() - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Get crop window initial rectangle.
- getIntent(Context) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- getIntent(Context, Class<?>) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- getMaxZoom() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
The max zoom allowed during cropping.
- getOutputUri() - Method in class com.theartofdev.edmodo.cropper.CropImageActivity
-
Get Android uri to save the cropped image into.
Use the given in options or create a temp file.
- getPickImageChooserIntent(Context) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Create a chooser intent to select the source to get image from.
The source can be camera's (ACTION_IMAGE_CAPTURE) or gallery's (ACTION_GET_CONTENT).
All possible sources are added to the intent chooser.
Use "pick_image_intent_chooser_title" string resource to override chooser title.
- getPickImageChooserIntent(Context, CharSequence, boolean) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Create a chooser intent to select the source to get image from.
The source can be camera's (ACTION_IMAGE_CAPTURE) or gallery's (ACTION_GET_CONTENT).
All possible sources are added to the intent chooser.
- getPickImageResultUri(Context, Intent) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
- getResultIntent(Uri, Exception, int) - Method in class com.theartofdev.edmodo.cropper.CropImageActivity
-
Get intent instance to be used for the result of this activity.
- getRotatedDegrees() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Get the amount of degrees the cropping image is rotated cloackwise.
- getRotation() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The final rotation of the cropped image relative to source
- getSampleSize() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
sample size used creating the crop bitmap to lower its size
- getScaleType() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Get the scale type of the image in the crop view.
- getUri() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The Android uri of the saved cropped image result
Null if get cropped image was executed, no output requested or failure.
- guidelines - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
whether the guidelines should be on, off, or only showing when resizing.
- guidelinesColor - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
the color of the guidelines lines
- guidelinesThickness - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
the thickness of the guidelines lines.
- saveCroppedImageAsync(Uri) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- saveCroppedImageAsync(Uri, Bitmap.CompressFormat, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- saveCroppedImageAsync(Uri, Bitmap.CompressFormat, int, int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- saveCroppedImageAsync(Uri, Bitmap.CompressFormat, int, int, int, CropImageView.RequestSizeOptions) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- scaleType - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
The initial scale type of the image in the crop image view
- setActivityMenuIconColor(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the color to use for action bar items icons.
Default: NONE
- setActivityTitle(String) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- setAllowCounterRotation(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
if to allow counter-clockwise rotation during cropping.
Note: if rotation is disabled this option has no effect.
Default: false
- setAllowRotation(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
if to allow rotation during cropping.
Default: true
- setAspectRatio(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the X,Y value of the aspect ratio.
Also sets fixes aspect ratio to TRUE.
Default: 1/1
- setAspectRatio(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Sets the both the X and Y values of the aspectRatio.
Sets fixed aspect ratio to TRUE.
- 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.
- setAutoZoomEnabled(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
if auto-zoom functionality is enabled.
default: true.
- setAutoZoomEnabled(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set auto-zoom functionality to enabled/disabled.
- setBackgroundColor(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the color of the overlay background around the crop window cover the image parts not in the crop window.
Default: Color.argb(119, 0, 0, 0)
- setBorderCornerColor(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the color of the corner line.
Default: WHITE
- setBorderCornerLength(float) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the length of the corner line away from the corner (in pixels).
Default: 14dp
- setBorderCornerOffset(float) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the offset of corner line from crop window border (in pixels).
Default: 5dp
- setBorderCornerThickness(float) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
thickness of the corner line (in pixels).
Default: 2dp
- setBorderLineColor(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the color of the guidelines lines.
Default: Color.argb(170, 255, 255, 255)
- setBorderLineThickness(float) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the thickness of the guidelines lines (in pixels).
Default: 3dp
- setBounds(float[], int, int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Informs the CropOverlayView of the image's position relative to the
ImageView.
- setCropRect(Rect) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set the crop window position and size to the given rectangle.
Image to crop must be first set before invoking this, for async - after complete callback.
- setCropShape(CropImageView.CropShape) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
The shape of the cropping window.
To set square/circle crop shape set aspect ratio to 1:1.
Default: RECTANGLE
- setCropShape(CropImageView.CropShape) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
The shape of the cropping area - rectangle/circular.
To set square/circle crop shape set aspect ratio to 1:1.
- setCropShape(CropImageView.CropShape) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
The shape of the cropping area - rectangle/circular.
- setCropWindowChangeListener(CropOverlayView.CropWindowChangeListener) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Set the crop window change listener.
- setCropWindowLimits(float, float, float, float) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
set the max width/height and scale factor of the shown image to original image to scale the limits
appropriately.
- setCropWindowRect(RectF) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Set the left/top/right/bottom coordinates of the crop window.
- setFixAspectRatio(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
whether the width to height aspect ratio should be maintained or free to change.
Default: false
- 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(CropImageView.Guidelines) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
whether the guidelines should be on, off, or only showing when resizing.
Default: ON_TOUCH
- setGuidelines(CropImageView.Guidelines) - 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(CropImageView.Guidelines) - 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.
- setGuidelinesColor(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the color of the guidelines lines.
Default: Color.argb(170, 255, 255, 255)
- setGuidelinesThickness(float) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the thickness of the guidelines lines (in pixels).
Default: 1dp
- 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.
- 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(CropImageOptions) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Sets all initial values, but does not call initCropWindow to reset the views.
Used once at the very start to initialize the attributes.
- setInitialCropWindowPaddingRatio(float) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
The initial crop window padding from image borders in percentage of the cropping image dimensions.
Default: 0.1
- setInitialCropWindowRect(Rect) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Set crop window initial rectangle to be used instead of default.
- setInitialCropWindowRectangle(Rect) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the initial rectangle to set on the cropping image after loading.
Default: NONE - will initialize using initial crop window padding ratio
- setInitialRotation(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the initial rotation to set on the cropping image after loading (0-360 degrees clockwise).
Default: NONE - will read image exif data
- setMaxCropResultSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the max size the resulting cropping image is allowed to be, affects the cropping window limits
(in pixels).
Default: 99999, 99999
- setMaxCropResultSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
the max size the resulting cropping image is allowed to be, affects the cropping window limits
(in pixels).
- setMaxCropResultSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
the max size the resulting cropping image is allowed to be, affects the cropping window limits
(in pixels).
- setMaxZoom(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
The max zoom allowed during cropping.
Default: 4
- setMaxZoom(int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
The max zoom allowed during cropping.
- setMinCropResultSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the min size the resulting cropping image is allowed to be, affects the cropping window limits
(in pixels).
Default: 40px, 40px
- setMinCropResultSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
the min size the resulting cropping image is allowed to be, affects the cropping window limits
(in pixels).
- setMinCropResultSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
the min size the resulting cropping image is allowed to be, affects the cropping window limits
(in pixels).
- setMinCropWindowSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the min size the crop window is allowed to be (in pixels).
Default: 42dp, 42dp
- setMultiTouchEnabled(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
if multi touch functionality is enabled.
default: true.
- setMultiTouchEnabled(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set multi touch functionality to enabled/disabled.
- setMultiTouchEnabled(boolean) - Method in class com.theartofdev.edmodo.cropper.CropOverlayView
-
Set multi touch functionality to enabled/disabled.
- setNoOutputImage(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
if the result of crop image activity should not save the cropped image bitmap.
Used if you want to crop the image manually and need only the crop rectangle and rotation data.
Default: false
- setOnCropImageCompleteListener(CropImageView.OnCropImageCompleteListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- setOnGetCroppedImageCompleteListener(CropImageView.OnGetCroppedImageCompleteListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- setOnSaveCroppedImageCompleteListener(CropImageView.OnSaveCroppedImageCompleteListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- setOnSetImageUriCompleteListener(CropImageView.OnSetImageUriCompleteListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- setOutputCompressFormat(Bitmap.CompressFormat) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the compression format to use when writting the image.
Default: JPEG
- setOutputCompressQuality(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the quility (if applicable) to use when writting the image (0 - 100).
Default: 90
- setOutputUri(Uri) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the Android Uri to save the cropped image to.
Default: NONE, will create a temp file
- setRequestedSize(int, int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- setRequestedSize(int, int, CropImageView.RequestSizeOptions) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
the size to resize the cropped image to.
Default: 0, 0 - not set, will not resize
- setResult(Uri, Exception, int) - Method in class com.theartofdev.edmodo.cropper.CropImageActivity
-
Result with cropped image data or error if failed.
- setResultCancel() - Method in class com.theartofdev.edmodo.cropper.CropImageActivity
-
Cancel of cropping activity.
- setRotatedDegrees(int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set the amount of degrees the cropping image is rotated cloackwise.
- setRotationDegrees(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
The amount of degreees to rotate clockwise or counter-clockwise (0-360).
Default: 90
- setScaleType(CropImageView.ScaleType) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
The initial scale type of the image in the crop image view
Default: FIT_CENTER
- setScaleType(CropImageView.ScaleType) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set the scale type of the image in the crop view
- setShowCropOverlay(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
if to show crop overlay UI what contains the crop window UI surrounded by background over the cropping
image.
default: true, may disable for animation or frame transition.
- setShowCropOverlay(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
if to show crop overlay UI what contains the crop window UI surrounded by background over the cropping
image.
default: true, may disable for animation or frame transition.
- 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.CropImage.ActivityBuilder
-
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 (in pixels).
Default: 3dp
- 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.
- setTouchRadius(float) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
The radius of the touchable area around the handle (in pixels).
We are basing this value off of the recommended 48dp Rhythm.
See: http://developer.android.com/design/style/metrics-grids.html#48dp-rhythm
Default: 48dp
- showCropOverlay - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
if to show crop overlay UI what contains the crop window UI surrounded by background over the cropping
image.
default: true, may disable for animation or frame transition.
- showProgressBar - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
if to show progress bar when image async loading/cropping is in progress.
default: true, disable to provide custom progress bar UI.
- snapRadius - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
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.
- start(Activity) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- start(Activity, Class<?>) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- start(Context, Fragment) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- start(Context, Fragment, Class<?>) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
- startCropWorkerTask(int, int, CropImageView.RequestSizeOptions, Uri, Bitmap.CompressFormat, int) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
- startPickImageActivity(Activity) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Start an activity to get image for cropping using chooser intent that will have all the available
applications for the device like camera (MyCamera), galery (Photos), store apps (Dropbox), etc.
Use "pick_image_intent_chooser_title" string resource to override pick chooser title.