ImageViewUtil

Utility class that deals with operations with an ImageView.

open class ImageViewUtil

Functions

getBitmapRectCenterInside
Link copied to clipboard

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

open fun getBitmapRectCenterInside(imageWidth: Float, imageHeight: Float, viewWidth: Float, viewHeight: Float): Rect
getBitmapRectFCenterInside
Link copied to clipboard

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

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