L3DT documentation
Large 3D terrain generator



Export a map as a file, optionally with a different map size.

Function prototype

bool CExtAPI::map_ExportMap(ZMAP hMap, const char* lpFileName, ZFORMAT hFormat, long nx, long ny);


Name Type Comment
hMap ZMAP A handle to the map to be exported.
lpFileName const char* A C-style string containing the name of the output file.
hFormat ZFORMAT A handle to the format to be used to save the file. If null, the format is guessed from the file extension.
nx long The desired width of the exported file (in pixels).
ny long The desired height of the exported file (in pixels).

Return value

False if an error occurred, and true otherwise.


Difference with map_SaveFile

map_SaveFile stores the filename and format and sets saved/modified flags, whereas map_ExportMap does no such thing. Furthermore, map_ExportMap can export at a different map size, and may also be used to save mosaics as a single map file.

zeolite/functions/map_exportmap.txt · Last modified: 2017/08/31 05:44 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki