stripe-android
camera-core
/
com.stripe.android.camera.framework.util
/
scaleCentered
scale
Centered
@
CheckResult
@
RestrictTo
(
value
=
[
RestrictTo.Scope.LIBRARY_GROUP
]
)
fun
Size
.
scaleCentered
(
x
:
Float
,
y
:
Float
)
:
Rect
Content copied to clipboard
Scale a size based on percentage scale values, and keep track of its position.