Function sprimage
#include <macaw.h>int sprimage(int n, int w, int h);
Copies a sprite, or a block of them, into a picture of its own. Use it to scale a sprite or use it as a 3D texture.
Parameters
nint- The number of the top-left sprite, from 0 to 255.
wint- How many sprites across to copy, from 1 to 16, or 0 for 1.
hint- How many sprites down to copy, from 1 to 16, or 0 for 1.
Returns int
The new picture's number, or 0 if it couldn't be made.
In Sprites as pictures, with spritesheet.