GLBasic User Manual

Main sections

STRETCHSPRITE

STRETCHSPRITE num%, x%, y%, width%, height%



A sprite image will be drawn to the back buffer. You can use the same image num% multiple times to draw multiple copies of the same sprite.

STRETCHSPRITE


Similar to ZOOMSPRITE in that it will draw a resized sprite to the back buffer, except that stretch sprite allows you to specify the pixel sizes to resize the sprite to rather than a zooming factor.

Sample:
LOADSPRITE "Bubble.bmp", 0
STRETCHSPRITE 0, 100, 100, 128, 128 // make it 128x128 pixels
SHOWSCREEN
MOUSEWAIT

See also...