public static Point getSize ( float scale , Mirage image ) { int width = Math . max ( 0 , Math . round ( image . getWidth ( ) * scale ) ) ; int height = Math . max ( 0 , Math . round ( image . getHeight ( ) * scale ) ) ; return new Point ( width , height ) ; }
Computes the width and height to which an image should be scaled .