# C1.C1Preview.RenderImage.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*">RenderImage Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*"></a>
<h4 id="C1_C1Preview_RenderImage__ctor" data-uid="C1.C1Preview.RenderImage.#ctor">RenderImage()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderImage()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*"></a>
<h4 id="C1_C1Preview_RenderImage__ctor_System_Drawing_Image_" data-uid="C1.C1Preview.RenderImage.#ctor(System.Drawing.Image)">RenderImage(Image)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class,
assigning the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderImage(Image image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(image As Image)</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">image</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.image">Image</a> that is assigned to the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*"></a>
<h4 id="C1_C1Preview_RenderImage__ctor_System_String_" data-uid="C1.C1Preview.RenderImage.#ctor(System.String)">RenderImage(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class,
assigning the <a class="xref" href="C1.C1Preview.RenderImage.ImageName.html#C1_C1Preview_RenderImage_ImageName">ImageName</a> property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderImage(string imageName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(imageName As String)</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.string">string</a></td>
      <td><span class="parametername">imageName</span></td>
      <td><p>A string that is assigned to the <a class="xref" href="C1.C1Preview.RenderImage.ImageName.html#C1_C1Preview_RenderImage_ImageName">ImageName</a> property.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*"></a>
<h4 id="C1_C1Preview_RenderImage__ctor_System_Drawing_Image_C1_C1Preview_Style_" data-uid="C1.C1Preview.RenderImage.#ctor(System.Drawing.Image,C1.C1Preview.Style)">RenderImage(Image, Style)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class,
assigning the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property,
and specifying a <a class="xref" href="C1.C1Preview.Style.html">Style</a> to use.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderImage(Image image, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(image As Image, style As Style)</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">image</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.image">Image</a> that is assigned to the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="C1.C1Preview.Style.html">Style</a> to use
(the <a class="xref" href="C1.C1Preview.Style.AssignNonInheritedFrom.html#C1_C1Preview_Style_AssignNonInheritedFrom_C1_C1Preview_Style_">AssignNonInheritedFrom(Style)</a> method
is used to copy the specified style to the current object's <a class="xref" href="C1.C1Preview.RenderObject.Style.html#C1_C1Preview_RenderObject_Style">Style</a>).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*"></a>
<h4 id="C1_C1Preview_RenderImage__ctor_System_String_C1_C1Preview_Style_" data-uid="C1.C1Preview.RenderImage.#ctor(System.String,C1.C1Preview.Style)">RenderImage(string, Style)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class,
assigning the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property,
and specifying a <a class="xref" href="C1.C1Preview.Style.html">Style</a> to use.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderImage(string imageName, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(imageName As String, style As Style)</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.string">string</a></td>
      <td><span class="parametername">imageName</span></td>
      <td><p>A string that is assigned to the <a class="xref" href="C1.C1Preview.RenderImage.ImageName.html#C1_C1Preview_RenderImage_ImageName">ImageName</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="C1.C1Preview.Style.html">Style</a> to use
(the <a class="xref" href="C1.C1Preview.Style.AssignNonInheritedFrom.html#C1_C1Preview_Style_AssignNonInheritedFrom_C1_C1Preview_Style_">AssignNonInheritedFrom(Style)</a> method
is used to copy the specified style to the current object's <a class="xref" href="C1.C1Preview.RenderObject.Style.html#C1_C1Preview_RenderObject_Style">Style</a>).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*"></a>
<h4 id="C1_C1Preview_RenderImage__ctor_System_Drawing_Image_C1_C1Preview_ImageAlign_" data-uid="C1.C1Preview.RenderImage.#ctor(System.Drawing.Image,C1.C1Preview.ImageAlign)">RenderImage(Image, ImageAlign)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class,
assigning the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property,
and specifying a <a class="xref" href="C1.C1Preview.ImageAlign.html">ImageAlign</a> to use.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderImage(Image image, ImageAlign imageAlign)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(image As Image, imageAlign As ImageAlign)</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">image</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.image">Image</a> that is assigned to the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.ImageAlign.html">ImageAlign</a></td>
      <td><span class="parametername">imageAlign</span></td>
      <td><p>An <a class="xref" href="C1.C1Preview.ImageAlign.html">ImageAlign</a> that is assigned to <a class="xref" href="C1.C1Preview.Style.ImageAlign.html#C1_C1Preview_Style_ImageAlign">ImageAlign</a>
of the current object's <a class="xref" href="C1.C1Preview.Style.html">Style</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderImage__ctor_" data-uid="C1.C1Preview.RenderImage.#ctor*"></a>
<h4 id="C1_C1Preview_RenderImage__ctor_System_String_C1_C1Preview_ImageAlign_" data-uid="C1.C1Preview.RenderImage.#ctor(System.String,C1.C1Preview.ImageAlign)">RenderImage(string, ImageAlign)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class,
assigning the <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a> property,
and specifying a <a class="xref" href="C1.C1Preview.ImageAlign.html">ImageAlign</a> to use.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderImage(string imageName, ImageAlign imageAlign)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(imageName As String, imageAlign As ImageAlign)</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.string">string</a></td>
      <td><span class="parametername">imageName</span></td>
      <td><p>A string that is assigned to the <a class="xref" href="C1.C1Preview.RenderImage.ImageName.html#C1_C1Preview_RenderImage_ImageName">ImageName</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.ImageAlign.html">ImageAlign</a></td>
      <td><span class="parametername">imageAlign</span></td>
      <td><p>An <a class="xref" href="C1.C1Preview.ImageAlign.html">ImageAlign</a> that is assigned to <a class="xref" href="C1.C1Preview.Style.ImageAlign.html#C1_C1Preview_Style_ImageAlign">ImageAlign</a>
of the current object's <a class="xref" href="C1.C1Preview.Style.html">Style</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
