Macaw OS C reference

Function pictureset

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

Sets one pixel of a picture to a colour. A pixel outside the picture is left alone.

Parameters

pint
The picture's number.
xint
How far the pixel is from the picture's left edge, in pixels.
yint
How far the pixel is from the picture's top, in pixels.
colourint
The colour to set it to, from 0 to 255.

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