Differenze tra le versioni di "Comando EsportaImmagine"
Da GeoGebra Manual.
(Creata pagina con "<noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|scripting|EsportaImmagine}} ;EsportaImmagine( <Property>, <Value>, <Property>, <Value>, ... ) :Exports an image of...") |
|||
Riga 1: | Riga 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude> | <noinclude>{{Manual Page|version=5.0}}</noinclude> | ||
{{command|scripting|EsportaImmagine}} | {{command|scripting|EsportaImmagine}} | ||
− | ;EsportaImmagine( < | + | ;EsportaImmagine( <Proprietà>, <Valore>, <Proprietà>, <Valore>, ... ) |
− | : | + | :Esporta un'immagine della Vista attiva (o della vista indicata nel parametro "Vista") |
− | + | Esempi | |
;<code>EsportaImmagine("scale", 5)</code> | ;<code>EsportaImmagine("scale", 5)</code> | ||
: Shows a popup of the current view so that the user can right-click -> Save Image As... | : Shows a popup of the current view so that the user can right-click -> Save Image As... |
Versione delle 16:58, 2 feb 2018
- EsportaImmagine( <Proprietà>, <Valore>, <Proprietà>, <Valore>, ... )
- Esporta un'immagine della Vista attiva (o della vista indicata nel parametro "Vista")
Esempi
EsportaImmagine("scale", 5)
- Shows a popup of the current view so that the user can right-click -> Save Image As...
EsportaImmagine("filename", "image.png")
- Saves a file called "image.png" of the current view
EsportaImmagine("filename", "image.png", "view", 2)
- Saves a file called "image.png" of Graphics View 2
EsportaImmagine("filename", "image.png", "view", -1)
- Saves a file called "image.png" of the current view
EsportaImmagine("filename", "image.png", "dpi", 300)
- Saves a file called "image.png" of the current view at 300 dpi (dots-per-inch)
EsportaImmagine("filename", "image.png", "scale", 2)
- Saves a file called "image.png" of the current view at scale 2 (ie twice nominal screen resolution)
EsportaImmagine("filename", "image.png", scalecm", 2, "dpi", 600)
- Saves a file called "image.png" of the current view at 600dpi at a scale 1 unit = 2 cm
EsportaImmagine("filename", "image.png", "width", 1000)
- Saves a file called "image.png" of the current view with width = 1000 pixels
EsportaImmagine("filename", "image.png", "height", 1000)
- Saves a file called "image.png" of the current view with height = 1000 pixels
EsportaImmagine("filename", "image.png", "transparent", true)
- Saves a transparent PNG file called "image.png"
EsportaImmagine("filename", "image.svg", "type", "svg")
- Saves a file called "image.svg" of the current view in SVG format