SetStretch

static void SetStretch(
float xStretch, float yStretch );

Sets the stretch factor of the whole screen.

Note that the given values are a stretch factor such that 1.0 is the original size, 0.5 is half the original size and 2.0 is double the original size.

The default stretch is xStretch = 1.0, yStretch = 1.0.

Hint: You can use this function to zoom in and out of the playfield.

Examples

// Zoom out to 50% of the original size //
Transforms::SetStretch0.500.50 );

// Zoom back in to the original size //
Transforms::SetStretch1.01.0 ); 


Other functions of the class Transforms
SetPosition
Set the position of screen contents
SetRotation
Set the rotational angle of the screen contents
SetRotationPivot
Selects the pivot point of the screen rotation
SetStretch
Sets the stretch factor of the screen
SetTintColor
Tints the whole screen to a color
ResetPlacement
Disables all the active placement transformations
SetColorChannels
Sets the coefficients of the color channels
GetColorChannels
Returns the coefficients of the color channels
PushPlacement
Pushes the placement state of Transforms in a stack
PopPlacement
Pops the most recent placement state of Transforms from the stack


Questions about SetStretch? Click here.