John Pickford #1 The function above will do that if you give it graphicswidth(), graphicsheight() as parameters.