# C1.C1Word.Objects.RtfPictureShape.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Word_Objects_RtfPictureShape__ctor_" data-uid="C1.C1Word.Objects.RtfPictureShape.#ctor*">RtfPictureShape Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Word_Objects_RtfPictureShape__ctor_" data-uid="C1.C1Word.Objects.RtfPictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Objects_RtfPictureShape__ctor_System_Drawing_Image_System_Single_System_Single_" data-uid="C1.C1Word.Objects.RtfPictureShape.#ctor(System.Drawing.Image,System.Single,System.Single)">RtfPictureShape(Image, 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(Image img, float width = -1, float height = -1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As Image, Optional width As Single = -1, Optional height As Single = -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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.image">Image</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.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_C1Word_Objects_RtfPictureShape__ctor_" data-uid="C1.C1Word.Objects.RtfPictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Objects_RtfPictureShape__ctor_C1_Win_Bitmap_C1Bitmap_System_Single_System_Single_" data-uid="C1.C1Word.Objects.RtfPictureShape.#ctor(C1.Win.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>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bmp As C1Bitmap, Optional width As Single = -1, Optional height As Single = -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>
