Macaw OS C reference

Function sys_screenshot

#include <macaw.h>
int sys_screenshot(const char *path);

Saves a picture of the whole screen as a PNG file.

Parameters

pathconst char *
Where to save it, like "/home/shot.png". A path without / at the start is from your program's folder.

Returns int

1 if it saved the picture, or 0 if it couldn't.

In The system, with platform, ismac, modkey, memory, sys_version, sys_fps, sys_display, sys_volume, sys_title, sys_cursor, sys_clipboard, sys_setclipboard.