public static Point getCorner ( Point center , Point size ) { return new Point ( center . x - size . x / 2 , center . y - size . y / 2 ) ; }
Computes the upper left corner where the image should be drawn given the center and dimensions to which the image should be scaled .