@NonNull 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