# C1.C1Preview.RenderImage

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_RenderImage" data-uid="C1.C1Preview.RenderImage" class="text-break">RenderImage Class
</h1>
  <div class="markdown level0 summary"><p>Represents an image in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.
Can also be used to show an image of a <b>System.Windows.Forms.Control</b>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a></div>
    <div class="level2"><span class="xref">RenderImage</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.C1Preview.IStyleOwner.html">IStyleOwner</a></div>
    <div><a class="xref" href="C1.C1Preview.IDocumentLocation.html">IDocumentLocation</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_RenderImage_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RenderImage : RenderObject, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RenderImage
    Inherits RenderObject
    Implements IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_RenderImage__ctor" data-uid="C1.C1Preview.RenderImage.#ctor">
          <a class="xref" href="C1.C1Preview.RenderImage.-ctor.html#C1_C1Preview_RenderImage__ctor">RenderImage()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage__ctor_System_Drawing_Image_" data-uid="C1.C1Preview.RenderImage.#ctor(System.Drawing.Image)">
          <a class="xref" href="C1.C1Preview.RenderImage.-ctor.html#C1_C1Preview_RenderImage__ctor_System_Drawing_Image_">RenderImage(Image)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage__ctor_System_Drawing_Image_C1_C1Preview_ImageAlign_" data-uid="C1.C1Preview.RenderImage.#ctor(System.Drawing.Image,C1.C1Preview.ImageAlign)">
          <a class="xref" href="C1.C1Preview.RenderImage.-ctor.html#C1_C1Preview_RenderImage__ctor_System_Drawing_Image_C1_C1Preview_ImageAlign_">RenderImage(Image, ImageAlign)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage__ctor_System_Drawing_Image_C1_C1Preview_Style_" data-uid="C1.C1Preview.RenderImage.#ctor(System.Drawing.Image,C1.C1Preview.Style)">
          <a class="xref" href="C1.C1Preview.RenderImage.-ctor.html#C1_C1Preview_RenderImage__ctor_System_Drawing_Image_C1_C1Preview_Style_">RenderImage(Image, Style)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage__ctor_System_String_" data-uid="C1.C1Preview.RenderImage.#ctor(System.String)">
          <a class="xref" href="C1.C1Preview.RenderImage.-ctor.html#C1_C1Preview_RenderImage__ctor_System_String_">RenderImage(string)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage__ctor_System_String_C1_C1Preview_ImageAlign_" data-uid="C1.C1Preview.RenderImage.#ctor(System.String,C1.C1Preview.ImageAlign)">
          <a class="xref" href="C1.C1Preview.RenderImage.-ctor.html#C1_C1Preview_RenderImage__ctor_System_String_C1_C1Preview_ImageAlign_">RenderImage(string, ImageAlign)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage__ctor_System_String_C1_C1Preview_Style_" data-uid="C1.C1Preview.RenderImage.#ctor(System.String,C1.C1Preview.Style)">
          <a class="xref" href="C1.C1Preview.RenderImage.-ctor.html#C1_C1Preview_RenderImage__ctor_System_String_C1_C1Preview_Style_">RenderImage(string, Style)</a>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_RenderImage_Control" data-uid="C1.C1Preview.RenderImage.Control">
          <a class="xref" href="C1.C1Preview.RenderImage.Control.html#C1_C1Preview_RenderImage_Control">Control</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a> object,
an image of which is rendered by the current <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage_Image" data-uid="C1.C1Preview.RenderImage.Image">
          <a class="xref" href="C1.C1Preview.RenderImage.Image.html#C1_C1Preview_RenderImage_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.image">Image</a> that is
rendered by the current <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage_ImageName" data-uid="C1.C1Preview.RenderImage.ImageName">
          <a class="xref" href="C1.C1Preview.RenderImage.ImageName.html#C1_C1Preview_RenderImage_ImageName">ImageName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of an image that is
rendered by the current <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> object.
When the current object renders, the actual image is retrieved by this name
from the <a class="xref" href="C1.C1Preview.C1PrintDocument.Dictionary.html#C1_C1Preview_C1PrintDocument_Dictionary">Dictionary</a> of the containing <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage_UseClassicDrawMethod" data-uid="C1.C1Preview.RenderImage.UseClassicDrawMethod">
          <a class="xref" href="C1.C1Preview.RenderImage.UseClassicDrawMethod.html#C1_C1Preview_RenderImage_UseClassicDrawMethod">UseClassicDrawMethod</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets value indicating whether Graphics.DrawImage(Image, dstRect)
method should be used to draw content of object instead of
Graphics.DrawImage(Image, dstRect, srcRect, GraphicsUnit). In some rare cases
it produces more convient results. Default is false.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_RenderImage_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.RenderImage.AssignFrom(C1.C1Preview.RenderObject,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.RenderImage.AssignFrom.html#C1_C1Preview_RenderImage_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_">AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a> to the current object.
Calls the base <a class="xref" href="C1.C1Preview.RenderObject.AssignFrom.html#C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_">AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)</a> method.
If <code class="paramref">source</code> is a <a class="xref" href="C1.C1Preview.RenderGraphics.html">RenderGraphics</a>, also copies <a class="xref" href="C1.C1Preview.RenderGraphics.html">RenderGraphics</a>-specific properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderImage_CreateSame" data-uid="C1.C1Preview.RenderImage.CreateSame">
          <a class="xref" href="C1.C1Preview.RenderImage.CreateSame.html#C1_C1Preview_RenderImage_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new empty <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> object
linked with same <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> as current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
