class ImageViewUtil
Utility class that deals with operations with an ImageView.
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. |
|
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. |