Macaw OS C reference

Function drawpartex

#include <macaw.h>
void drawpartex(
    int p,
    int sx,
    int sy,
    int sw,
    int sh,
    int x,
    int y,
    int key,
    int scale,
    int flipx,
    int flipy
);

Draws one rectangle of a picture, made bigger or flipped.

Parameters

pint
The picture's number.
sxint
How far the part's left edge is from the picture's left edge, in pixels.
syint
How far the part's top edge is from the picture's top, in pixels.
swint
The part's width in pixels.
shint
The part's height in pixels.
xint
How far it goes from the window's left edge, in pixels.
yint
How far it 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, drawpictureex, savepicture, parsepicture, decodepicture, decodepicturefile, importpicture, importpicturefile, pictureget, pictureset, picturesize, pictureclear, picturecopy, picturegetrgb, picturesetrgb.