Macaw OS C reference

Function imap_size

#include <macaw.h>
int imap_size(int m, int layer, int *w, int *h);

Tells you how big one layer of an imported map is, in tiles.

Parameters

mint
The imported map's number.
layerint
Which layer, counting from 0.
wint *
Where to put its width in tiles: pass the address of an int, like &w, or NULL.
hint *
Where to put its height in tiles: pass the address of an int, like &h, or NULL.

Returns int

1 if there's such a layer, or 0 if there isn't.

In Maps made elsewhere, with importmap, importmapimage, imap_layers, imap_layername, imap_get, imap_picture, imap_used, imap_notes, imap_note, imap_free.