]> git.sven.stormbind.net Git - sven/vym.git/blobdiff - demos/scripts/export-image.vys
New upstream version 2.9.22
[sven/vym.git] / demos / scripts / export-image.vys
diff --git a/demos/scripts/export-image.vys b/demos/scripts/export-image.vys
new file mode 100644 (file)
index 0000000..2ea58a5
--- /dev/null
@@ -0,0 +1,16 @@
+vym.clearConsole();
+map = vym.currentMap();
+map.exportMap("Image","export-test.png","PNG");        // Last parameter is optional
+
+
+// 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"]
+
+// Image formats
+["PNG", "GIF", "JPG", "JPEG", "PNG", "PBM", "PGM", "PPM", "TIFF", "XBM", "]XPM"