# C1.Util.GraphicsRendering.DrawImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_GraphicsRendering_DrawImage_" data-uid="C1.Util.GraphicsRendering.DrawImage*">DrawImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_GraphicsRendering_DrawImage_" data-uid="C1.Util.GraphicsRendering.DrawImage*"></a>
<h4 id="C1_Util_GraphicsRendering_DrawImage_System_Object_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Util.GraphicsRendering.DrawImage(System.Object,System.Double,System.Double,System.Double,System.Double)">DrawImage(object, double, double, double, double)</h4>
<div class="markdown level1 summary"><p>Draw image using special source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawImage(object source, double x, double y, double w, double h)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawImage(source As Object, x As Double, y As Double, w As Double, h As Double)</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.object">object</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source of image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>X-coordinate of image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>Y-coordinate of image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">w</span></td>
      <td><p>Rendering width.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">h</span></td>
      <td><p>Rendering height.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_GraphicsRendering_DrawImage_" data-uid="C1.Util.GraphicsRendering.DrawImage*"></a>
<h4 id="C1_Util_GraphicsRendering_DrawImage_GrapeCity_Documents_Drawing_IImage_System_Drawing_RectangleF_" data-uid="C1.Util.GraphicsRendering.DrawImage(GrapeCity.Documents.Drawing.IImage,System.Drawing.RectangleF)">DrawImage(IImage, RectangleF)</h4>
<div class="markdown level1 summary"><p>Draw image/bitmap with content alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public void DrawImage(IImage image, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub DrawImage(image As IImage, rc As RectangleF)</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">IImage</span></td>
      <td><span class="parametername">image</span></td>
      <td><p>The drawing image/bitmap.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The drawing rectangle in pixels.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_GraphicsRendering_DrawImage_" data-uid="C1.Util.GraphicsRendering.DrawImage*"></a>
<h4 id="C1_Util_GraphicsRendering_DrawImage_GrapeCity_Documents_Drawing_IImage_System_Drawing_RectangleF_System_Drawing_RectangleF_" data-uid="C1.Util.GraphicsRendering.DrawImage(GrapeCity.Documents.Drawing.IImage,System.Drawing.RectangleF,System.Drawing.RectangleF)">DrawImage(IImage, RectangleF, RectangleF)</h4>
<div class="markdown level1 summary"><p>Draw image/bitmap with content alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public void DrawImage(IImage image, RectangleF rc, RectangleF rcClip)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub DrawImage(image As IImage, rc As RectangleF, rcClip As RectangleF)</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">IImage</span></td>
      <td><span class="parametername">image</span></td>
      <td><p>The drawing image/bitmap.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The drawing rectangle in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rcClip</span></td>
      <td><p>The drawing clip for image/bitmap rectangle in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
