button to Export Graphics View

timstudiesmath shared this question 9 years ago
Answered

Is there a GeoGebraScript command for Export Graphics View? I'd like to create a button to take a screenshot so that I don't have to have the Menubar in my applet.


Thanks!


Tim

Comments (2)

photo
1

Hi ?


http://wiki.geogebra.org/en... :


boolean writePNGtoFile(String filename, double exportScale, boolean transparent, double DPI) 4.0 Exports Graphics View 1 to a .PNG file (signed applets only)

eg var success = ggbApplet.writePNGtoFile("c:\\test.png", 1, false, 300);


hello

you can create two points named Export_1 and Export_2 for setting the exported rectangle of screen


saludos

photo
1

What is the syntax to export the graphic to the clipboard?


Thanks in advance

Gilles

© 2021 International GeoGebra Institute