GLBasic User Manual

Main sections

ZOOMSPRITE

ZOOMSPRITE num%, x%, y%, relx#, rely#



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.

ZOOMSPRITE


Scales a sprite image horizontally by relx# and vertically by rely#. The center stays the same as it was when using DRAWSPRITE.

If you put negative values for the relx#, rely# factors (e.g. relx#=-1) you can mirror the image.

Sample:
LOADSPRITE "Sprite.bmp", 0
ZOOMSPRITE 0, 100, 100, 50, 200 // Veeeery looong
SHOWSCREEN
MOUSEWAIT

See also...