getBitmapRectFCenterInside

Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to .

Return

the rectangular position of the Bitmap

Parameters

imageHeight

the Bitmap's height

imageWidth

the Bitmap's width

viewHeight

the parent View's height

viewWidth

the parent View's width

open fun getBitmapRectFCenterInside(imageWidth: Float, imageHeight: Float, viewWidth: Float, viewHeight: Float): MultiRect