TechDraw Image/ro: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
Line 14: Line 14:
</div>
</div>


<span id="Description"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Descriere==
==Descriere==
Line 19: Line 20:
</div>
</div>


The Image tool inserts a [[bitmap|bitmap]] image (PNG, TIFF, JPEG, etc.) from a file into the page as a view.
The '''TechDraw Image''' tool inserts a [[Bitmap|bitmap]] image (PNG, TIFF, JPEG, etc.) from a file into the page as a view.


[[Image:TechDraw_Image_example.png]]
[[Image:TechDraw_Image_example.png]]
{{Caption|Image inserted in the drawing page}}
{{Caption|Image inserted in the drawing page}}


<span id="Usage"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Cum se folosește==
==Cum se folosește==
Line 31: Line 33:
# A file dialog will open. Select a location and file name.
# A file dialog will open. Select a location and file name.


<span id="Properties"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Proprietăți==
==Proprietăți==
Line 53: Line 56:
* {{PropertyView|Crop|Bool}}: Crop the image to {{PropertyData|Width}} x {{PropertyData|Height}}.
* {{PropertyView|Crop|Bool}}: Crop the image to {{PropertyData|Width}} x {{PropertyData|Height}}.


<span id="Scripting"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Script==
==Script==

Revision as of 08:42, 29 May 2023

TechDraw Image

Menu location
TechDraw → Image
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
None

Descriere

Instrumentul Image inserează o imagina tip bitmap (png,jpeg,jpg,bmp,etc) dintr-un fișier în pagină ca vedere

The TechDraw Image tool inserts a bitmap image (PNG, TIFF, JPEG, etc.) from a file into the page as a view.

Image inserted in the drawing page

Cum se folosește

  1. Press the Insert Bitmap Image button
  2. A file dialog will open. Select a location and file name.

Proprietăți

  • n/a

See also TechDraw View.

Data

Image

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

View

Image

  • VizualizareCrop (Bool): Crop the image to DateWidth x DateHeight.

Script

Fișiere Bitmap Images pot fi inserate într-o pagină de desen folosind Python.

See also: Autogenerated API documentation 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