STARTS THE AUTOMATIC RESIZING OF THE PICTURE DISPLAYED BY THE SYSTEM OBJECT NUMBER N
ACTION
The command STRETCH_ON N resizes the picture displayed by the system object designated by its number N to the shape of the system object. As the height and width of the picture are resized independently, the picture displayed by the system object can be distorted.
The stretching is the automatic : when the system object is resized by the commands HEIGHT and WIDTH, the displayed picture is then resized.
The system object is a PICTURE or a SCENE2D.
Remark: the automatic resizing can be stopped by the command STRETCH_OFF.
SYNTAX:
STRETCH_ON N
USE ERROR EXAMPLE
rem create a SCENE2D with default position and dimensions
scene2D 1
rem load a background picture
file_load 1,"My 2D world.bmp"
rem start the automatic resizing
stretch_on 1
rem change the dimensions of SCENE2D
width 1,600
height 1,400
rem wait for 1 second
wait 1000
rem stop the automatic resizing
stretch_off 1
STRETCH_ON
STRETCH_ON N
SEE ALSO
STRETCH_OFF