GLBasic User Manual

Main sections

STRETCHANIM

STRETCHANIM id#, anim#, x#, y#, width#, height#



This command is similar to STRETCHSPRITE except it draws only the particular animation frame anim# rather than the full image id#.
The animation must have been previously loaded with LOADANIM.

Example:
LOADANIM "test.bmp", 0, 32,32
STRETCHANIM 0, 1, 100, 100, 45, 50    // make it 45x50 pixels
SHOWSCREEN
MOUSEWAIT

See also...