File: export-image.vys

package info (click to toggle)
vym 2.9.604-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,476 kB
  • sloc: cpp: 45,317; ruby: 2,181; xml: 667; sh: 70; makefile: 15
file content (18 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
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"]