# C1.WPF.Word.Objects.RtfPictureShape.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Word_Objects_RtfPictureShape__ctor_" data-uid="C1.WPF.Word.Objects.RtfPictureShape.#ctor*">RtfPictureShape Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Word_Objects_RtfPictureShape__ctor_" data-uid="C1.WPF.Word.Objects.RtfPictureShape.#ctor*"></a>
<h4 id="C1_WPF_Word_Objects_RtfPictureShape__ctor_System_Windows_Media_Imaging_WriteableBitmap_System_Single_System_Single_" data-uid="C1.WPF.Word.Objects.RtfPictureShape.#ctor(System.Windows.Media.Imaging.WriteableBitmap,System.Single,System.Single)">RtfPictureShape(WriteableBitmap, float, float)</h4>
<div class="markdown level1 summary"><p>The RTF picture shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfPictureShape(WriteableBitmap img, float width = 0, float height = 0)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.imaging.writeablebitmap">WriteableBitmap</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.image">Image</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The specified width of the picture, by default as in the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The specified height of the picture, by default as in the image.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Word_Objects_RtfPictureShape__ctor_" data-uid="C1.WPF.Word.Objects.RtfPictureShape.#ctor*"></a>
<h4 id="C1_WPF_Word_Objects_RtfPictureShape__ctor_C1_WPF_Bitmap_C1Bitmap_System_Single_System_Single_" data-uid="C1.WPF.Word.Objects.RtfPictureShape.#ctor(C1.WPF.Bitmap.C1Bitmap,System.Single,System.Single)">RtfPictureShape(C1Bitmap, float, float)</h4>
<div class="markdown level1 summary"><p>The RTF picture shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfPictureShape(C1Bitmap bmp, float width = -1, float height = -1)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The specified width of the picture, by default as in the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The specified height of the picture, by default as in the image.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
