public void scalePercent ( float percentX , float percentY ) { plainWidth = ( getWidth ( ) * percentX ) / 100f ; plainHeight = ( getHeight ( ) * percentY ) / 100f ; float [ ] matrix = matrix ( ) ; scaledWidth = matrix [ DX ] - matrix [ CX ] ; scaledHeight = matrix [ DY ] - matrix [ CY ] ; setWidthPercentage ( 0 ) ; }
Scale the width and height of an image to a certain percentage .