Macaw OS C reference

Function drawpictureex

#include <macaw.h>
void drawpictureex(
    int p,
    int x,
    int y,
    int key,
    int scale,
    int flipx,
    int flipy
);

Draws a whole picture, made bigger or flipped.

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.
scaleint
How big each pixel is drawn: 2 makes it twice as big. Below 1 counts as 1.
flipxint
1 to mirror it left to right, 0 not to.
flipyint
1 to turn it upside down, 0 not to.

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