Macaw OS C reference

Function drawpicture

#include <macaw.h>
void drawpicture(int p, int x, int y, int key);

Draws a whole picture into the window, or into the picture you're drawing into.

Parameters

pint
The picture's number.
xint
How far its left edge goes from the window's left edge, in pixels.
yint
How far its top edge goes from the window's top, in pixels.
keyint
A colour to leave out so it's see-through, usually 0, or -1 to draw every pixel.

In Pictures, with newpicture, loadpicture, freepicture, picturewidth, pictureheight, drawpart, drawinto, drawpictureex, drawpartex, savepicture, parsepicture, decodepicture, decodepicturefile, importpicture, importpicturefile, pictureget, pictureset, picturesize, pictureclear, picturecopy, picturegetrgb, picturesetrgb.