TechDraw: Immagine bitmap

From FreeCAD Documentation
Revision as of 08:46, 29 May 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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