ly.img.android.pesdk.utils / ImageViewUtil / getBitmapRectFCenterInside

getBitmapRectFCenterInside

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

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

Parameters

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
MultiRect!: the rectangular position of the Bitmap