TechDraw Image/it: Difference between revisions

From FreeCAD Documentation
(Created page with "==Opzioni== Nessuna.")
(Updating to match new version of source page)
 
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand/it|Name=TechDraw Image|Name/it=Immagine|Workbenches=[[TechDraw Module/it|TechDraw]]|MenuLocation=TechDraw → Immagine|Shortcut=|SeeAlso=}}

<div class="mw-translate-fuzzy">
{{Docnav/it
|[[TechDraw_Symbol/it|Simbolo SVG]]
|[[TechDraw_ToggleFrame/it|Attiva o disattiva la cornice]]
|[[TechDraw_Workbench/it|TechDraw]]
|IconL=TechDraw_Symbol.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_ToggleFrame.svg
}}
</div>

<div class="mw-translate-fuzzy">
{{GuiCommand/it|Name=TechDraw Image|Name/it=Immagine bitmap|Workbenches=[[TechDraw_Workbench/it|TechDraw]]|MenuLocation=TechDraw → Immagine bitmap|Shortcut=|SeeAlso=[[TechDraw Symbol/it|Simbolo SVG]]}}
</div>


<span id="Description"></span>
==Descrizione==
==Descrizione==
Lo strumento Immagine inserisce un'immagine bitmap (png, jpeg, jpg, bmp, ecc) da un file nella pagina come una vista


<div class="mw-translate-fuzzy">
Lo strumento Immagine inserisce un'immagine [[bitmap/it|bitmap]] (PNG, TIFF, JPEG, ecc.) da un file nella pagina come una vista
</div>

[[Image:TechDraw_Image_example.png]]
{{Caption|Immagine inserita nella pagina di disegno}}

<span id="Usage"></span>
==Uso==
==Uso==
# Premere il pulsante {{KEY|[[Image:Techdraw-image.png|24px]] [[TechDraw Image/it|Immagine]]}}
# Si apre una finestra di dialogo. Selezionare un percorso e il nome file.


<div class="mw-translate-fuzzy">
==Opzioni==
# Premere il pulsante {{Button|[[Image:TechDraw_Image.svg|16px]] [[TechDraw Image/it|Immagine bitmap]]}}.
Nessuna.
# Si apre una finestra di dialogo. Selezionare un percorso e il nome file.
</div>


==Properties==
<span id="Properties"></span>
==Proprietà==
* n/a

See also [[TechDraw_View#Properties|TechDraw View]].

=== Data ===

{{TitleProperty|Image}}

* {{PropertyData|Image File|File}}: The file containing this bitmap.
* {{PropertyData|Image Included|FileIncluded}}: Embedded image file. System use only.
* {{PropertyData|Width|Float}}: The width of the cropped image in mm. Only used if {{PropertyView|Crop}} is {{TRUE}}.
* {{PropertyData|Height|Float}}: The height of the cropped image in mm. Idem.

=== View ===

{{TitleProperty|Image}}

* {{PropertyView|Crop|Bool}}: Crop the image to {{PropertyData|Width}} x {{PropertyData|Height}}.

<span id="Scripting"></span>
==Script==

<div class="mw-translate-fuzzy">
{{Emphasis|Vedere anche:}} [[TechDraw API/it|TechDraw API]] e [[FreeCAD Scripting Basics/it|Nozioni di base sugli script di FreeCAD]].
</div>

<div class="mw-translate-fuzzy">
Lo strumento Image può essere utilizzato nelle [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] tramite la seguente funzione:
</div>


==Scripting==
Bitmap Image files can be inserted into a drawing page using Python.
{{Code|code=
{{Code|code=
dvi = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewImage','TestImage')
dvi = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewImage','TestImage')
Line 25: Line 74:




<div class="mw-translate-fuzzy">
==Notes==
{{Docnav/it
* Use the Scale property to adjust the size of the image.
|[[TechDraw_Symbol/it|Simbolo SVG]]
* Use the Width and Height properties to clip the image.
|[[TechDraw_ToggleFrame/it|Attiva o disattiva la cornice]]
|[[TechDraw_Workbench/it|TechDraw]]
|IconL=TechDraw_Symbol.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_ToggleFrame.svg
}}
</div>

{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}
<languages/>

Latest revision as of 08:46, 29 May 2023

Immagine bitmap

Posizione nel menu
TechDraw → Immagine bitmap
Ambiente
TechDraw
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Simbolo SVG

Descrizione

Lo strumento Immagine inserisce un'immagine bitmap (PNG, TIFF, JPEG, ecc.) da un file nella pagina come una vista

Immagine inserita nella pagina di disegno

Uso

  1. Premere il pulsante Immagine bitmap.
  2. Si apre una finestra di dialogo. Selezionare un percorso e il nome file.

Proprietà

See also TechDraw View.

Data

Image

  • DatiImage File (File): The file containing this bitmap.
  • DatiImage Included (FileIncluded): Embedded image file. System use only.
  • DatiWidth (Float): The width of the cropped image in mm. Only used if VistaCrop is true.
  • DatiHeight (Float): The height of the cropped image in mm. Idem.

View

Image

  • VistaCrop (Bool): Crop the image to DatiWidth x DatiHeight.

Script

Lo strumento Image può essere utilizzato nelle macro e dalla console di Python tramite la seguente funzione:

dvi = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewImage','TestImage')
rc = page.addView(dvi)
dvi.ImageFile = "pathToMy/imageFile.png"
dvi.Height = 200
dvi.Width  = 200