1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
vym.clearConsole();
map = vym.currentMap();
map.exportMap(["Image","export-test.png","PNG"]);
// exportMap Parameters
// 0: Export type
// 1: Filname
// 2: Image format (optional) for "Image"
// Export types
// ["Last", "AO", "ASCII", "CSV", "HTML", "Image", "Impress", "LaTeX", "Markdown", "OrgMode", "PDF", "SVG", "XML"]
//
// More details in the code:
// https://github.com/insilmaril/vym/blob/aa5c4544627637344c58f5d8c7319c3b6d3dbd0c/src/vymmodelwrapper.cpp#L241
//
// Image formats
// ["PNG", "GIF", "JPG", "JPEG", "PNG", "PBM", "PGM", "PPM", "TIFF", "XBM", "XPM"]
|