stripe-android
camera-core
/
com.stripe.android.camera.framework.image
/
scaleAndCrop
scale
And
Crop
@
CheckResult
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP
]
)
fun
Bitmap
.
scaleAndCrop
(
size
:
Size
,
filter
:
Boolean
=
false
)
:
Bitmap
Content copied to clipboard
Scale the
Bitmap
to circumscribe the given
Size
, then crop the excess.