87 lines
4.1 KiB
HTML
87 lines
4.1 KiB
HTML
<html><head><title>TechDraw Image</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>TechDraw Image</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="TechDraw_Image"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_Image.png" class="image"><img alt="TechDraw Image.png" src="TechDraw_Image.png" width="32" height="32" /></a> TechDraw Image</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">TechDraw → Image
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="TechDraw_Module.html" title="TechDraw Module">TechDraw</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Default shortcut
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">See also
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">
|
|
</td></tr>
|
|
<tr>
|
|
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1"><a href="#TechDraw_Image"><span class="tocnumber">1</span> <span class="toctext">TechDraw Image</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#How_to_use"><span class="tocnumber">3</span> <span class="toctext">How to use</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Options"><span class="tocnumber">4</span> <span class="toctext">Options</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Properties"><span class="tocnumber">5</span> <span class="toctext">Properties</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Scripting"><span class="tocnumber">6</span> <span class="toctext">Scripting</span></a></li>
|
|
<li class="toclevel-1 tocsection-6"><a href="#Notes"><span class="tocnumber">7</span> <span class="toctext">Notes</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>The Image tool inserts an bitmap image (png,jpeg,jpg,bmp,etc) from a file into the page as a view
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><li> Press the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Techdraw-image.png" class="image"><img alt="Techdraw-image.png" src="24px-Techdraw-image.png" width="24" height="24" srcset="/wiki/images/thumb/d/d3/Techdraw-image.png/36px-Techdraw-image.png 1.5x, /wiki/images/thumb/d/d3/Techdraw-image.png/48px-Techdraw-image.png 2x" /></a> <a class="mw-selflink selflink">Image</a></span> button</li>
|
|
<li> A file dialog will open. Select a location and file name. </li></ol>
|
|
<h2><span class="mw-headline" id="Options">Options</span></h2>
|
|
<p>None.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
|
|
<ul><li> n/a</li></ul>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>Bitmap Image files can be inserted into a drawing page using Python.
|
|
</p>
|
|
<pre>dvi = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewImage','TestImage')
|
|
rc = page.addView(dvi)
|
|
dvi.ImageFile = "pathToMy/imageFile.png"
|
|
dvi.Height = 200
|
|
dvi.Width = 200 </pre>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
|
|
<ul><li> Use the Scale property to adjust the size of the image. </li>
|
|
<li> Use the Width and Height properties to clip the image. </li></ul>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=TechDraw_Image&oldid=222877">http://www.freecadweb.org/wiki/index.php?title=TechDraw_Image&oldid=222877</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |