private RectF getMatrixRectF ( ) { Matrix matrix = scaleMatrix ; RectF rect = new RectF ( ) ; Drawable d = getDrawable ( ) ; if ( null != d ) { rect . set ( 0 , 0 , d . getIntrinsicWidth ( ) , d . getIntrinsicHeight ( ) ) ; matrix . mapRect ( rect ) ; } return rect ; }
Get image boundary from matrix