question: private void rescaleCanvas ( int width , int height , float strokeWidth , Canvas canvas ) { if ( mSvg == null ) return ; final RectF viewBox = mSvg . getDocumentViewBox ( ) ; final float scale = Math . min ( width / ( viewBox . width ( ) + strokeWidth ) , height / ( viewBox . height ( ) + strokeWidth ) ) ; canvas . translate ( ( width - viewBox . width ( ) * scale ) / 2.0f , ( height - viewBox . height ( ) * scale ) / 2.0f ) ; canvas . scale ( scale , scale ) ; mSvg . renderToCanvas ( canvas ) ; }
target:  Rescale the canvas with specific width and height.