public class ImageViewUtil
extends java.lang.Object
| Constructor and Description |
|---|
ImageViewUtil() |
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.Rect |
getBitmapRectCenterInside(int imageWidth,
int imageHeight,
int viewWidth,
int viewHeight)
Gets the rectangular position of a Bitmap if it were placed inside a View
with scale type set to
#CENTER_INSIDE. |
public static android.graphics.Rect getBitmapRectCenterInside(int imageWidth,
int imageHeight,
int viewWidth,
int viewHeight)
#CENTER_INSIDE.imageWidth - the Bitmap's widthimageHeight - the Bitmap's heightviewWidth - the parent View's widthviewHeight - the parent View's height