Get the x and y coordinates of of a tile in a mosaic.
Declaration | Zeolite.h |
---|---|
Implementation | Zeolite.cpp |
bool zmap_tile_GetTileCoords(void* hTile, long& x, long& y);
Name | Type | Comment |
---|---|---|
hTile | void* | A handle to a tile, the coordinates of which are to be retrieved. |
x | long& | A long integer, passed by reference, that is to receive the x coordinate. |
y | long& | A long integer, passed by reference, that is to receive the y coordinate. |
False if an error occurred, and true otherwise (with x and y set to the correct values.)
The x and y coordinates returned by zmap_tile_GetTileCoords
refer to the coordinates of the south-west corner of the given tile (bottom-left, on screen), as measured from the south-west corner of the map, and are measured in pixels. The coordinate axes are such that x increases in the east direction, and y increases in the north direction.