L3DT documentation
Large 3D terrain generator



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


Declaration Zeolite.h
Implementation Zeolite.cpp

Function prototype

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


Name Type Comment
hMap ZMAP A ZMAP handle to the map to be exported.
lpFileName const char* A C-style string containing the name of the output file.
hFormat ZFORMAT A ZFORMAT 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 zmap_SaveFile

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

zeolite/functions/zmap_exportmap.txt · Last modified: 2017/08/31 05:55 (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