- CAMERA_CAPTURE_PERMISSIONS_REQUEST_CODE - Static variable in class com.theartofdev.edmodo.cropper.CropImage
-
The request code used to request permission to capture image from camera.
- clearAspectRatio() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Clears set aspect ratio values and sets fixed aspect ratio to FALSE.
- 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
-
- CREATOR - Static variable in class com.theartofdev.edmodo.cropper.CropImage.ActivityResult
-
- CREATOR - Static variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
- CROP_IMAGE_ACTIVITY_REQUEST_CODE - Static variable in class com.theartofdev.edmodo.cropper.CropImage
-
The request code used to start
CropImageActivity to be used on result to identify the
this specific request.
- CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE - Static variable in class com.theartofdev.edmodo.cropper.CropImage
-
- CROP_IMAGE_EXTRA_BUNDLE - Static variable in class com.theartofdev.edmodo.cropper.CropImage
-
- CROP_IMAGE_EXTRA_OPTIONS - Static variable in class com.theartofdev.edmodo.cropper.CropImage
-
- CROP_IMAGE_EXTRA_RESULT - Static variable in class com.theartofdev.edmodo.cropper.CropImage
-
- CROP_IMAGE_EXTRA_SOURCE - Static variable in class com.theartofdev.edmodo.cropper.CropImage
-
- CropImage - Class in com.theartofdev.edmodo.cropper
-
Helper to simplify crop image work like starting pick-image acitvity and handling camera/gallery
intents.
The goal of the helper is to simplify the starting and most-common usage of image cropping and
not all porpose all possible scenario one-to-rule-them-all code base.
- cropImage() - Method in class com.theartofdev.edmodo.cropper.CropImageActivity
-
Execute crop image and save the result tou output uri.
- CropImage.ActivityBuilder - Class in com.theartofdev.edmodo.cropper
-
Builder used for creating Image Crop Activity by user request.
- CropImage.ActivityResult - Class in com.theartofdev.edmodo.cropper
-
Result data of Crop Image Activity.
- CropImageActivity - Class in com.theartofdev.edmodo.cropper
-
- CropImageActivity() - Constructor for class com.theartofdev.edmodo.cropper.CropImageActivity
-
- CropImageOptions - Class in com.theartofdev.edmodo.cropper
-
All the possible options that can be set to customize crop image.
Initialized with default values.
- CropImageOptions() - Constructor for class com.theartofdev.edmodo.cropper.CropImageOptions
-
Init options with defaults.
- CropImageOptions(Parcel) - Constructor for class com.theartofdev.edmodo.cropper.CropImageOptions
-
Create object from parcel.
- 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.CropResult - Class in com.theartofdev.edmodo.cropper
-
Result data of crop image.
- CropImageView.CropShape - Enum in com.theartofdev.edmodo.cropper
-
The possible cropping area shape.
To set square/circle crop shape set aspect ratio to 1:1.
- CropImageView.Guidelines - Enum in com.theartofdev.edmodo.cropper
-
The possible guidelines showing types.
- CropImageView.OnCropImageCompleteListener - Interface in com.theartofdev.edmodo.cropper
-
Interface definition for a callback to be invoked when image async crop is complete.
- CropImageView.OnSetCropOverlayMovedListener - Interface in com.theartofdev.edmodo.cropper
-
Interface definition for a callback to be invoked when the crop overlay is released.
- CropImageView.OnSetCropOverlayReleasedListener - Interface in com.theartofdev.edmodo.cropper
-
Interface definition for a callback to be invoked when the crop overlay is released.
- CropImageView.OnSetCropWindowChangeListener - Interface in com.theartofdev.edmodo.cropper
-
Interface definition for a callback to be invoked when the crop overlay is released.
- CropImageView.OnSetImageUriCompleteListener - Interface in com.theartofdev.edmodo.cropper
-
Interface definition for a callback to be invoked when image async loading is complete.
- CropImageView.RequestSizeOptions - Enum in com.theartofdev.edmodo.cropper
-
Possible options for handling requested width/height for cropping.
- CropImageView.ScaleType - Enum in com.theartofdev.edmodo.cropper
-
Options for scaling the bounds of cropping image to the bounds of Crop Image View.
Note: Some options are affected by auto-zoom, if enabled.
- cropMenuCropButtonIcon - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
optional image resource to be used for crop menu crop icon instead of text
- cropMenuCropButtonTitle - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
optional, the text of the crop menu crop button
- 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
-
- CropOverlayView.CropWindowChangeListener - Interface in com.theartofdev.edmodo.cropper
-
Interface definition for a callback to be invoked when crop window rectangle is changing.
- cropShape - Variable in class com.theartofdev.edmodo.cropper.CropImageOptions
-
The shape of the cropping window.
- 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.
- getCameraIntent(Context, Uri) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Get the main Camera intent for capturing image using device camera app.
- 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.CropImageView
-
Gets the crop window's position relative to the parent's view at screen.
- 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.
- getOriginalBitmap() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The image bitmap of the original image loaded for cropping.
Null if uri used to load image or activity result is used.
- getOriginalUri() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The Android uri of the original image loaded for cropping.
Null if bitmap was used to load image.
- 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, 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.
- getWholeImageRect() - Method in class com.theartofdev.edmodo.cropper.CropImageView.CropResult
-
The rectangle of the source image dimensions
- getWholeImageRect() - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Gets the source Bitmap's dimensions.
- 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(CharSequence) - 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
- setAllowFlipping(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
if to allow flipping during cropping.
Default: true
- 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.
- setCropMenuCropButtonIcon(int) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
Image resource id to use for crop icon instead of text.
Default: 0
- setCropMenuCropButtonTitle(CharSequence) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
optional, set crop menu crop button title.
Default: null, will use resource string: crop_image_menu_crop
- 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.
- setFlipHorizontally(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
whether the image should be flipped horizontally.
Default: false
- setFlippedHorizontally(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Sets whether the image should be flipped horizontally
- setFlippedVertically(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Sets whether the image should be flipped vertically
- setFlipVertically(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImage.ActivityBuilder
-
whether the image should be flipped vertically.
Default: false
- 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).
- 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
-
- setOnCropWindowChangedListener(CropImageView.OnSetCropWindowChangeListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set the callback when the crop window is changed
- setOnSetCropOverlayMovedListener(CropImageView.OnSetCropOverlayMovedListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set the callback when the cropping is moved
- setOnSetCropOverlayReleasedListener(CropImageView.OnSetCropOverlayReleasedListener) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
Set the callback t
- 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
- setSaveBitmapToInstanceState(boolean) - Method in class com.theartofdev.edmodo.cropper.CropImageView
-
if to save bitmap on save instance state.
It is best to avoid it by using URI in setting image for cropping.
If false the bitmap is not saved and if restore is required to view will be empty, storing the
bitmap requires saving it to file which can be expensive.
- 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
-
Gets the cropped image based on the current crop window.
If (reqWidth,reqHeight) is given AND image is loaded from URI cropping will try to use sample
size to fit in the requested width and height down-sampling if possible - optimization to get
best size to quality.
The result will be invoked to listener set by
CropImageView.setOnCropImageCompleteListener(OnCropImageCompleteListener).
- 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.
- startPickImageActivity(Context, Fragment) - Static method in class com.theartofdev.edmodo.cropper.CropImage
-
Same as
startPickImageActivity method but instead of
being called and returning to an Activity, this method can be called and return to a Fragment.