Std ViewScreenShot/it: Difference between revisions

From FreeCAD Documentation
(Created page with "# Selezionare una dimensione standard dall'elenco a discesa '''Dimensioni standard'''. Oppure specificare '''Larghezza''' e '''Altezza''' per una dimensione personalizzata. # Facoltativamente, premere un pulsante '''Proporzioni''' per impostare il rapporto larghezza-altezza dell'immagine. Se la casella di input '''Larghezza''' ha il focus, l'altezza dell'immagine cambierà e viceversa.")
(Created page with "===Proprietà immagine===")
Line 46: Line 46:
# Facoltativamente, premere un pulsante '''Proporzioni''' per impostare il rapporto larghezza-altezza dell'immagine. Se la casella di input '''Larghezza''' ha il focus, l'altezza dell'immagine cambierà e viceversa.
# Facoltativamente, premere un pulsante '''Proporzioni''' per impostare il rapporto larghezza-altezza dell'immagine. Se la casella di input '''Larghezza''' ha il focus, l'altezza dell'immagine cambierà e viceversa.


<span id="Image_properties"></span>
===Image properties===
===Proprietà immagine===


# Select an option from the '''Background''' dropdown list:
# Select an option from the '''Background''' dropdown list:

Revision as of 18:38, 23 April 2023

Cattura Schermata

Posizione nel menu
Strumenti → Salva immagine...
Ambiente
Tutti
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Stampa, Esporta Pdf, Macro Copia la vista 3D negli appunti, Macro Screen Wiki, Macro Snip

Descrizione

Il comando Salva immagine apre una finestra di dialogo per salvare il contenuto della vista 3D attiva in un file.

La finestra di dialogo Salva immagine dopo aver premuto il pulsante Esteso

Utilizzo

  1. Selezionare l'opzione Strumenti → Salva immagine... dal menu.
  2. Si apre la finestra di dialogo Salva immagine.
  3. Facoltativamente, premere il pulsante Esteso per visualizzare un pannello aggiuntivo nella finestra di dialogo. Per maggiori informazioni vedere Opzioni.
  4. Facoltativamente, sfogliare fino alla cartella corretta.
  5. Immettere un nome file e selezionare il tipo di file.
  6. Premere il pulsante Salva per creare il file immagine e chiudere la finestra di dialogo.

Opzioni

Dimensioni immagine

  1. Selezionare una dimensione standard dall'elenco a discesa Dimensioni standard. Oppure specificare Larghezza e Altezza per una dimensione personalizzata.
  2. Facoltativamente, premere un pulsante Proporzioni per impostare il rapporto larghezza-altezza dell'immagine. Se la casella di input Larghezza ha il focus, l'altezza dell'immagine cambierà e viceversa.

Proprietà immagine

  1. Select an option from the Background dropdown list:
    • Current This option uses the background of the 3D view.
    • White
    • Black
    • Transparent Not all image formats support transparency.
  2. Select an option from the Creation method dropdown list:
    • Offscreen (New) This is the default method. This method supports anti-aliasing. Technical information: The most important classes for this method are Qt's QOffscreenSurface and QOpenGLFramebufferObject.
    • Offscreen (Old) This method does not work on many modern Linux systems as it relies on the graphics driver. This method does not support anti-aliasing. Technical information: This is a real off-screen rendering method that only uses functions from the Coin3d library.
    • Framebuffer (custom) This method supports anti-aliasing. Technical information: If anti-aliasing is off, this method reads the image directly from the graphics renderer, else it renders to a framebuffer and gets the image from there. The key part of this method is Qt's QOpenGLFramebufferObject class.
    • Framebuffer (as is) This method uses the same techniques as Framebuffer (custom). It also supports anti-aliasing but has some limitations related to custom sizes and always uses the current background of the 3D view.

Image comment

  1. Select the Insert MIBA option to add MIBA information to the file. Not all image formats support this.
  2. Or select the Insert comment option and type a comment in the text field to embed a comment in the file. Not all image formats support this.
  3. Check the Add watermark checkbox to add a watermark. The watermark is placed in the lower left corner of the image and consists of the FreeCAD logo and name above the main FreeCAD URL: www.freecadweb.org.

Notes

  • The number of available image file formats may vary depending on your OS.
  • Some OpenGL drivers don't allow renderings above a certain maximum size.

Preferences

  • The 3D view background can be changed in the preferences: Edit → Preferences... → Display → Colors → Background color. See Preferences Editor.
  • To change the 3D view anti-aliasing: Edit → Preferences... → Display → 3D view → Rendering → Anti-Aliasing. See Preferences Editor.

Scripting

It is possible to create screenshots with python code.

Gui.ActiveDocument.ActiveView.saveImage('C:/temp/test.png',1656,783,'Current')

This script saves a series of screenshots of different sizes and from different directions. The camera type, orthographic or perspective, is also changed.

import Part, PartGui
# Loading test part
Part.open('C:/Documents and Settings/jriegel/My Documents/Projects/FreeCAD/data/Blade.stp')
OutDir = 'C:/temp/'
 
# Creating images with different Views, Cameras and sizes
for p in ['PerspectiveCamera','OrthographicCamera']:
    Gui.SendMsgToActiveView(p)
    for f in ['ViewAxo','ViewFront','ViewTop']:
        Gui.SendMsgToActiveView(f)
        for x,y in [[500,500],[1000,3000],[3000,1000],[3000,3000],[8000,8000]]:
            Gui.ActiveDocument.ActiveView.saveImage(OutDir + 'Blade_' + p +'_' + f + '_' + `x` + '_' + `y` + '.jpg',x,y,'White')
            Gui.ActiveDocument.ActiveView.saveImage(OutDir + 'Blade_' + p +'_' + f + '_' + `x` + '_' + `y` + '.png',x,y,'Transparent')

# Close active document
App.closeDocument(App.ActiveDocument.Name)