# GrapeCity.Documents.Imaging.BitmapRenderer.DrawBitmap

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_BitmapRenderer_DrawBitmap_" data-uid="GrapeCity.Documents.Imaging.BitmapRenderer.DrawBitmap*">DrawBitmap Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_BitmapRenderer_DrawBitmap_" data-uid="GrapeCity.Documents.Imaging.BitmapRenderer.DrawBitmap*"></a>
<h4 id="GrapeCity_Documents_Imaging_BitmapRenderer_DrawBitmap_GrapeCity_Documents_Imaging_GcBitmap_System_Drawing_RectangleF_System_Single_" data-uid="GrapeCity.Documents.Imaging.BitmapRenderer.DrawBitmap(GrapeCity.Documents.Imaging.GcBitmap,System.Drawing.RectangleF,System.Single)">DrawBitmap(GcBitmap, RectangleF, float)</h4>
<div class="markdown level1 summary"><p>Draws a <a class="xref" href="GrapeCity.Documents.Imaging.BitmapRenderer.Bitmap.html#GrapeCity_Documents_Imaging_BitmapRenderer_Bitmap">Bitmap</a> at the specified location and with the specified size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawBitmap(GcBitmap bitmap, RectangleF rect, float opacity = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawBitmap(bitmap As GcBitmap, rect As RectangleF, Optional opacity 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="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Imaging.BitmapRenderer.Bitmap.html#GrapeCity_Documents_Imaging_BitmapRenderer_Bitmap">Bitmap</a> to draw.</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">rect</span></td>
      <td><p>Specifies the location and size of the drawn 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">opacity</span></td>
      <td><p>The opacity [0, 1] of the source bitmap, to multiply to the source bitmap's alpha channel.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
