Rysunek Techniczny: Wstaw obraz bitmapy

From FreeCAD Documentation
Revision as of 09:41, 21 September 2022 by Kaktus (talk | contribs) (Created page with "{{TitleProperty|Obraz}}")

TechDraw Image

Menu location
Rysunek Techniczny → Wstaw obraz bitmapy
Workbenches
Rysunek Techniczny
Default shortcut
None
Introduced in version
-
See also
SVG Symbol

Opis

Narzędzie Obraz wstawia z pliku do strony widok obrazu bitmapy (PNG, TIFF, JPEG itp.).

Obraz wstawiony do strony rysunku.

Użycie

  1. Naciśnij przycisk Wstaw obraz bitmapy.
  2. Otworzy się okno dialogowe pliku. Wybierz lokalizację i nazwę pliku.

Właściwości

Zapoznaj się również informacjami na stronie właściwości widoku środowiska Rysunek Techniczny.

Dane

Obraz

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

Widok

Image

  • WIDOKCrop (Bool): Crop the image to DANEWidth x DANEHeight.

Tworzenie skryptów

See also: TechDraw API and FreeCAD Scripting Basics.

The Image tool can be used in macros and from the Python console by using the following functions:

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