MCPcopy Create free account

hub / github.com/CYRUS-STUDIO/ImagePicker / functions

Functions332 in github.com/CYRUS-STUDIO/ImagePicker

↓ 9 callersMethodgetRect
Get the left/top/right/bottom coordinates of the crop window.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:92
↓ 8 callersMethodapplyImageMatrix
Apply matrix to handle the image inside the image view. @param width the width of the image view @param height the height of the image view
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1368
↓ 8 callersMethodgetCropPoints
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 rota
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:562
↓ 8 callersMethodgetCropWindowRect
Get the left/top/right/bottom coordinates of the crop window.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:204
↓ 7 callersMethodgetRectBottom
Get bottom value of the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:248
↓ 7 callersMethodgetRectLeft
Get left value of the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:227
↓ 7 callersMethodgetRectRight
Get right value of the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:241
↓ 7 callersMethodgetRectTop
Get top value of the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:234
↓ 7 callersMethodhandleCropWindowChanged
Handle crop window change to:<br> 1. Execute auto-zoom-in/out depending on the area covered of cropping window relative to the available view area.<br
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1321
↓ 7 callersMethodinitCropWindow
Set the initial crop window size and position. This is dependent on the size and position of the image being cropped.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:501
↓ 7 callersMethodsetInitialCropWindowRect
Set crop window initial rectangle to be used instead of default.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:438
↓ 6 callersMethodadjustBottom
Get the resulting y-position of the bottom edge of the crop window given the handle's position and the image's bounding box and snap radius. @param b
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:557
↓ 6 callersMethodadjustLeft
Get the resulting x-position of the left edge of the crop window given the handle's position and the image's bounding box and snap radius. @param lef
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:328
↓ 6 callersMethodadjustRight
Get the resulting x-position of the right edge of the crop window given the handle's position and the image's bounding box and snap radius. @param ri
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:404
↓ 6 callersMethodadjustTop
Get the resulting y-position of the top edge of the crop window given the handle's position and the image's bounding box and snap radius. @param top
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:481
↓ 6 callersMethodgetAspectRatioX
the X value of the aspect ratio;
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:333
↓ 6 callersMethodgetAspectRatioY
the Y value of the aspect ratio;
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:357
↓ 6 callersMethodgetIntent
Get {@link CropImageActivity} intent to start the activity.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:430
↓ 6 callersMethodisExplicitCameraPermissionRequired
Check if explicetly requesting camera permission is required.<br> It is required in Android Marshmellow and above if "CAMERA" permission is requested
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:283
↓ 6 callersMethodisFixAspectRatio
whether the aspect ratio is fixed or not; true fixes the aspect ratio, while false allows it to be changed.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:413
↓ 6 callersMethodsetBitmap
{@link #setBitmap(Bitmap, int, Uri, int, int)}}
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:995
↓ 6 callersMethodsetImageUriAsync
Sets a bitmap loaded from the given Android URI as the content of the CropImageView.<br> Can be used with URI from gallery or camera source.<br> Will
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:848
↓ 6 callersMethodsetProgressBarVisibility
Set visibility of progress bar when async loading/cropping is in process and show is enabled.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1495
↓ 5 callersMethodmapImagePointsByImageMatrix
Adjust the given image rectangle by image transformation matrix to know the final rectangle of the image.<br> To get the proper rectangle it must be f
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1444
↓ 5 callersMethodsetCropWindowRect
Set the left/top/right/bottom coordinates of the crop window.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:211
↓ 5 callersMethodsetRect
Set the left/top/right/bottom coordinates of the crop window.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:183
↓ 4 callersMethodcalculateAspectRatio
Calculates the aspect ratio given a rectangle.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:687
↓ 4 callersMethodcallOnCropWindowChanged
Invoke on crop change listener safe, don't let the app crash on exception.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:998
↓ 4 callersMethodcloseSafe
Close the given closeable object (Stream) in a safe way: check if it is null and catch-log exception thrown. @param closeable the closable object to
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:696
↓ 4 callersMethodgetError
The error that failed the loading/cropping (null if successful)
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1803
↓ 4 callersMethodgetGalleryIntents
Get all Gallery intents for getting image from one of the apps of the device that handle images.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:251
↓ 4 callersMethodgetMaxCropHeight
Maximum height in pixels that the crop window can get.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:121
↓ 4 callersMethodgetMaxCropWidth
Maximum width in pixels that the crop window can get.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:114
↓ 4 callersMethodgetMinCropHeight
Minimum height in pixels that the crop window can get.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:107
↓ 4 callersMethodgetMinCropWidth
Minimum width in pixels that the crop window can get.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:100
↓ 4 callersMethodgetPickImageChooserIntent
Create a chooser intent to select the source to get image from.<br> The source can be camera's (ACTION_IMAGE_CAPTURE) or gallery's (ACTION_GET_CONTE
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:156
↓ 4 callersMethodhandlePickImage
(Activity activity, Uri imageUri)
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:335
↓ 4 callersMethodisInCornerTargetZone
Determines if the specified coordinate is in the target touch zone for a corner handle. @param x the x-coordinate of the touch point @param y the y-c
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:326
↓ 4 callersMethodsetResult
Result with cropped image data or error if failed.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageActivity.java:281
↓ 4 callersMethodsetResultCancel
Cancel of cropping activity.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageActivity.java:290
↓ 4 callersMethodstartPickImageActivity
Start an activity to get image for cropping using chooser intent that will have all the available applications for the device like camera (MyCamera),
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:140
↓ 4 callersMethodvalidate
Validate all the options are withing valid range. @throws IllegalArgumentException if any of the options is not valid
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageOptions.java:432
↓ 3 callersMethodcalculateInSampleSizeByReqestedSize
Calculate the largest inSampleSize value that is a power of 2 and keeps both height and width larger than the requested height and width.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:563
↓ 3 callersMethodclearImageInt
Clear the current image set for cropping.<br> Full clear will also clear the data of the set image like Uri or Resource id while partial clear will on
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1046
↓ 3 callersMethodgetCaptureImageOutputUri
Get URI to image received from capture by camera. @param context used to access Android APIs, like content resolve, it is your activity/fragment/wid
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:321
↓ 3 callersMethodgetCropRect
Gets the crop window's position relative to the source Bitmap (not the image displayed in the CropImageView) using the original image rotation. @retu
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:538
↓ 3 callersMethodgetNewPaintOrNull
Creates the Paint object for given thickness and color, if thickness < 0 return null.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:823
↓ 3 callersMethodgetRectCenterX
Get horizontal center value of the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:269
↓ 3 callersMethodgetRectCenterY
Get verical center value of the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:276
↓ 3 callersMethodgetRectFromPoints
Get a rectangle for the given 4 points (x0,y0,x1,y1,x2,y2,x3,y3) by finding the min/max 2 points that contains the given 4 points and is a stright rec
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:284
↓ 3 callersMethodgetRectHeight
Get heightof the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:262
↓ 3 callersMethodgetRectWidth
Get width of the bounding rectangle of the given points.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:255
↓ 3 callersMethodgetTitle
(Context context)
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:146
↓ 3 callersMethodgetUri
The Android uri of the saved cropped image result Null if get cropped image was executed, no output requested or failure.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1796
↓ 3 callersMethodisReadExternalStoragePermissionsRequired
Check if the given picked image URI requires READ_EXTERNAL_STORAGE permissions.<br> Only relevant for API version 23 and above and not required for al
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:356
↓ 3 callersMethodresetCropOverlayView
Resets the crop overlay view.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:251
↓ 3 callersMethodsetAspectRatioX
Sets the X value of the aspect ratio; is defaulted to 1.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:340
↓ 3 callersMethodsetAspectRatioY
Sets the Y value of the aspect ratio; is defaulted to 1. @param aspectRatioY int that specifies the new Y value of the aspect ratio
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:367
↓ 3 callersMethodsetCropOverlayVisibility
Set visibility of crop overlay to hide it when there is no image or specificly set by client.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1486
↓ 3 callersMethodsetCropShape
The shape of the cropping area - rectangle/circular.<br> To set square/circle crop shape set aspect ratio to 1:1.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:323
↓ 3 callersMethodsetTitle
设置标题 @param title
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:54
↓ 3 callersMethodupdateImageBounds
Update the scale factor between the actual image bitmap and the shown image.<br>
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1504
↓ 3 callersMethodupdateMenuItemIconColor
Update the color of a specific menu item to the given color.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageActivity.java:314
↓ 2 callersMethodadjustBottomByAspectRatio
Adjust bottom edge by current crop window width and the given aspect ratio, the top edge remains in possition while the top adjusts to keep aspect rat
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:652
↓ 2 callersMethodadjustLeftByAspectRatio
Adjust left edge by current crop window height and the given aspect ratio, the right edge remains in possition while the left adjusts to keep aspect r
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:628
↓ 2 callersMethodadjustLeftRightByAspectRatio
Adjust left and right edges by current crop window height and the given aspect ratio, both right and left edges adjusts equally relative to center to
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:660
↓ 2 callersMethodadjustRightByAspectRatio
Adjust right edge by current crop window height and the given aspect ratio, the left edge remains in possition while the left adjusts to keep aspect r
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:644
↓ 2 callersMethodadjustTopBottomByAspectRatio
Adjust top and bottom edges by current crop window width and the given aspect ratio, both top and bottom edges adjusts equally relative to center to k
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:674
↓ 2 callersMethodadjustTopByAspectRatio
Adjust top edge by current crop window width and the given aspect ratio, the bottom edge remains in possition while the top adjusts to keep aspect rat
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowMoveHandler.java:636
↓ 2 callersMethodcalculateBounds
Calculate the bounding rectangle for current crop window, handle non-straight rotation angles.<br> If the rotation angle is straight then the bounds r
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:915
↓ 2 callersMethodcropBitmap
Crop image bitmap from URI by decoding it with specific width and height to down-sample if required.<br> Additionally if OOM is thrown try to increase
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:203
↓ 2 callersMethodcropBitmapObjectHandleOOM
Crop image bitmap from given bitmap using the given points in the original bitmap and the given rotation.<br> if the rotation is not 0,90,180 or 270 d
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:149
↓ 2 callersMethodcropBitmapObjectWithScale
Crop image bitmap from given bitmap using the given points in the original bitmap and the given rotation.<br> if the rotation is not 0,90,180 or 270 d
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:172
↓ 2 callersMethodcropForRotatedImage
Special crop of bitmap rotated by not stright angle, in this case the original crop bitmap contains parts beyond the required crop area, this method c
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:528
↓ 2 callersMethoddecodeImage
Decode image from uri using given "inSampleSize", but if failed due to out-of-memory then raise the inSampleSize until success.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:474
↓ 2 callersMethoddrawGuidelines
Draw 2 veritcal and 2 horizontal guidelines inside the cropping area to split it into 9 equal parts.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:715
↓ 2 callersMethodfixCropWindowRectByRules
Fix the given rect to fit into bitmap rect and follow min, max and aspect ratio rules.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:585
↓ 2 callersMethodfixCurrentCropWindowRect
Fix the current crop window rectangle if it is outside of cropping image or view bounds.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:218
↓ 2 callersMethodfixRectForAspectRatio
Fix the given rectangle if it doesn't confirm to aspect ration rule.<br> Make sure that width and height are equal if 1:1 fixed aspect ratio is reques
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:302
↓ 2 callersMethodfocusCenter
Determines if the cropper should focus on the center handle or the side handles. If it is a small image, focus on the center handle so the user can mo
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:391
↓ 2 callersMethodgetCameraIntent
Get the main Camera intent for capturing image using device camera app. If the outputFileUri is null, a default Uri will be created with {@link #getCa
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:213
↓ 2 callersMethodgetGalleryIntent
(Context context, boolean includeDocuments)
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:153
↓ 2 callersMethodgetIntentUri
兼容 Android N,Intent中不能使用 file:/// @param context @param uri @return
library/src/main/java/com/linchaolong/android/imagepicker/Utils.java:23
↓ 2 callersMethodgetOnMeasureSpec
Determines the specs for the onMeasure function. Calculates the width or height depending on the mode. @param measureSpecMode The mode of the measure
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1465
↓ 2 callersMethodgetPickImageResultUri
Get the URI of the selected image from {@link #getPickImageChooserIntent(Context)}.<br> Will return the correct URI for camera and gallery image. @pa
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImage.java:337
↓ 2 callersMethodgetRotatedDegrees
Get the amount of degrees the cropping image is rotated cloackwise.<br> @return 0-360
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:395
↓ 2 callersMethodgetSampleSize
sample size used creating the crop bitmap to lower its size
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropImageView.java:1831
↓ 2 callersMethodgetScaleFactorHeight
get the scale factor (on height) of the showen image to original image.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:135
↓ 2 callersMethodgetScaleFactorWidth
get the scale factor (on width) of the showen image to original image.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:128
↓ 2 callersMethodhandlePickImageInner
选择图片结果回调
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:346
↓ 2 callersMethodhandleUri
处理返回图片的 uri,content 协议自动转换 file 协议 ,避免 {@link FileNotFoundException} @param context @param imageUri @return
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:379
↓ 2 callersMethodisInCenterTargetZone
Determines if the specified coordinate falls anywhere inside the given bounds. @param x the x-coordinate of the touch point @param y the y-coordinate
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:377
↓ 2 callersMethodisInHorizontalTargetZone
Determines if the specified coordinate is in the target touch zone for a horizontal bar handle. @param x the x-coordinate of the touch point @param y
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:343
↓ 2 callersMethodisInVerticalTargetZone
Determines if the specified coordinate is in the target touch zone for a vertical bar handle. @param x the x-coordinate of the touch point @param y t
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropWindowHandler.java:360
↓ 2 callersMethodisNonStraightAngleRotated
Is the cropping image has been rotated by NOT 0,90,180 or 270 degrees.
library/src/main/java/com/linchaolong/android/imagepicker/cropper/CropOverlayView.java:991
↓ 2 callersMethodonActivityResultInner
(Activity activity, Fragment fragment, int requestCode, int resultCode, Intent data)
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:203
↓ 2 callersMethodonPermissionDenied
用户拒绝授权回调 @param requestCode @param permissions @param grantResults
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:422
↓ 2 callersMethodonRequestPermissionsResultInner
(Activity activity, Fragment fragment, int requestCode, String permissions[], int[] grantResults)
library/src/main/java/com/linchaolong/android/imagepicker/ImagePicker.java:287
↓ 2 callersMethodresizeBitmap
Resize the given bitmap to the given width/height by the given option.<br>
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:329
↓ 2 callersMethodrotateBitmapByExif
Rotate the given image by reading the Exif value of the image (uri).<br> If no rotation is required the image will not be rotated.<br> New bitmap is c
library/src/main/java/com/linchaolong/android/imagepicker/cropper/BitmapUtils.java:80
next →1–100 of 332, ranked by callers