open static fun getBitmapRectCenterInside(imageWidth: Float, imageHeight: Float, viewWidth: Float, viewHeight: Float): Rect!
Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to ImageView.ScaleType.
imageWidth
- Float: the Bitmap's width
imageHeight
- Float: the Bitmap's height
viewWidth
- Float: the parent View's width
viewHeight
- Float: the parent View's height
Return
Rect!: the rectangular position of the Bitmap