Comando ExportaImagen

De GeoGebra Manual
Revisión del 09:59 16 feb 2018 de Fvitabar (discusión | contribs.) (Página creada con «<noinclude>{{Manual Page|version=5.0}}</noinclude> {{revisar}} {{command|scripting}} ;ExportaImagen( <Propiedad>, <Valor>, <Propiedad>, <Valor>, ... ) :Exporta una imagen d...»)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)
Saltar a: navegación, buscar


ExportaImagen( <Propiedad>, <Valor>, <Propiedad>, <Valor>, ... )
Exporta una imagen de la vista activa (o la especificada a través del parámetro "view")


Nota:
  • Las "Propiedades" requeridas en las sintaxis de este comando (listadas en los siguientes ejemplos) deben ser ingresadas en inglés.
  • Los valores que refieren a la vista (propiedad "view") que se desea grabar como imagen son:
  • 1 para Menu view graphics.svg 'Vista gráfica
  • 2 para Menu view graphics2.svg Vista gráfica 2
  • -1 para Perspectives algebra 3Dgraphics.svg Vista 3D


Ejemplos:
  • ExportaImagen("scale", 5)
Muestra una ventana emergente de la vista actual para que el usuario pueda hacer clic derecho -> Guardar imagen como...
  • ExportaImagen("filename", "image.png")
Saves a file called "image.png" of the current view
  • ExportaImagen("filename", "image.png", "view", 2)
Saves a file called "image.png" of Graphics View 2
  • ExportaImagen("filename", "image.png", "view", -1)
Saves a file called "image.png" of View 3D Graphics
  • ExportaImagen("filename", "image.png", "dpi", 300)
Saves a file called "image.png" of the current view at 300 dpi (dots-per-inch)
  • ExportaImagen("filename", "image.png", "scale", 2)
Saves a file called "image.png" of the current view at scale 2 (ie twice nominal screen resolution)
  • ExportaImagen("filename", "image.png", scalecm", 2, "dpi", 600)
Saves a file called "image.png" of the current view at 600 dpi at a scale 1 unit = 2 cm
  • ExportaImagen("filename", "image.png", "width", 1000)
Saves a file called "image.png" of the current view with width = 1000 pixels
  • ExportaImagen("filename", "image.png", "height", 1000)
Saves a file called "image.png" of the current view with height = 1000 pixels
  • ExportaImagen("filename", "image.png", "transparent", true)
Saves a transparent PNG file called "image.png"
  • ExportaImagen("filename", "image.svg", "type", "svg")
Saves a file called "image.svg" of the current view in SVG format


Notas:
  • En GeoGebra Clásico 5 if there is no filename parameter the image will be copied to the Clipboard. This may also be possible in the future (with browser support) in other versions.
© 2024 International GeoGebra Institute