Commands:Scaletocover

The command scales the element (preserving aspect) to fit snugly around a box. If you want to scale the element so that it fits inside a box, see.

Usage
scaletocover,left,top,right,bottom The parameters left, top, right, and bottom define the rectangle to fit the element around. To mirror the image horizontally, swap the left and right parameters. To mirror the image vertically, swap the top and bottom parameters.

The element will be aligned according to its and  settings. For example, if  is in effect, then the left edge of the element will be aligned with the left edge of the box.

Examples
To scale the element to cover the entire screen:

scaletofit,0,0,SCREEN_WIDTH,SCREEN_HEIGHT

To mirror the image vertically and fit it around a 100px square box at (200, 500):

scaletofit,200,600,300,500