We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97cff0b commit 7573ceaCopy full SHA for 7573cea
1 file changed
cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt
@@ -595,6 +595,8 @@ class CropImageView @JvmOverloads constructor(
595
*
596
* @return a new Bitmap representing the cropped image
597
*/
598
+ @Deprecated("Please use getCroppedImage", replaceWith = ReplaceWith("getCroppedImage()"))
599
+ @get:JvmName("-croppedImage")
600
val croppedImage: Bitmap?
601
get() = getCroppedImage(0, 0, RequestSizeOptions.NONE)
602
@@ -608,8 +610,8 @@ class CropImageView @JvmOverloads constructor(
608
610
609
611
@JvmOverloads
612
fun getCroppedImage(
- reqWidth: Int,
- reqHeight: Int,
613
+ reqWidth: Int = 0,
614
+ reqHeight: Int = 0,
615
options: RequestSizeOptions = RequestSizeOptions.RESIZE_INSIDE,
616
): Bitmap? {
617
if (originalBitmap != null) {
0 commit comments