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

## Content

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



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



<a id="C1_WPF_Word_Objects_RtfPicture__ctor_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor*"></a>
<h4 id="C1_WPF_Word_Objects_RtfPicture__ctor_System_Windows_Media_Imaging_WriteableBitmap_C1_WPF_Word_ImageFormat_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor(System.Windows.Media.Imaging.WriteableBitmap,C1.WPF.Word.ImageFormat)">RtfPicture(WriteableBitmap, ImageFormat)</h4>
<div class="markdown level1 summary"><p>The Word/RTF picture specific constructor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfPicture(WriteableBitmap img, ImageFormat imgf = ImageFormat.Png)</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 image/bitmap for picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Word.ImageFormat.html">ImageFormat</a></td>
      <td><span class="parametername">imgf</span></td>
      <td><p>The image format in storage.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Word_Objects_RtfPicture__ctor_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor*"></a>
<h4 id="C1_WPF_Word_Objects_RtfPicture__ctor_C1_WPF_Word_Objects_RtfObject_System_Windows_Media_Imaging_WriteableBitmap_C1_WPF_Word_ImageFormat_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor(C1.WPF.Word.Objects.RtfObject,System.Windows.Media.Imaging.WriteableBitmap,C1.WPF.Word.ImageFormat)">RtfPicture(RtfObject, WriteableBitmap, ImageFormat)</h4>
<div class="markdown level1 summary"><p>The Word/RTF picture specific constructor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfPicture(RtfObject owner, WriteableBitmap img, ImageFormat imgf = ImageFormat.Png)</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="C1.WPF.Word.Objects.RtfObject.html">RtfObject</a></td>
      <td><span class="parametername">owner</span></td>
      <td><p>The owned Word/RTF object.</p>
</td>
    </tr>
    <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 image/bitmap for picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Word.ImageFormat.html">ImageFormat</a></td>
      <td><span class="parametername">imgf</span></td>
      <td><p>The image format in storage.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Word_Objects_RtfPicture__ctor_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor*"></a>
<h4 id="C1_WPF_Word_Objects_RtfPicture__ctor_C1_WPF_Bitmap_C1Bitmap_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor(C1.WPF.Bitmap.C1Bitmap)">RtfPicture(C1Bitmap)</h4>
<div class="markdown level1 summary"><p>The Word/RTF picture specific constructor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfPicture(C1Bitmap bmp)</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 for picture.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Word_Objects_RtfPicture__ctor_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor*"></a>
<h4 id="C1_WPF_Word_Objects_RtfPicture__ctor_C1_WPF_Word_Objects_RtfObject_C1_WPF_Bitmap_C1Bitmap_" data-uid="C1.WPF.Word.Objects.RtfPicture.#ctor(C1.WPF.Word.Objects.RtfObject,C1.WPF.Bitmap.C1Bitmap)">RtfPicture(RtfObject, C1Bitmap)</h4>
<div class="markdown level1 summary"><p>The Word/RTF picture specific constructor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RtfPicture(RtfObject owner, C1Bitmap bmp)</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="C1.WPF.Word.Objects.RtfObject.html">RtfObject</a></td>
      <td><span class="parametername">owner</span></td>
      <td><p>The owned Word/RTF object.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object for picture.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
