# GrapeCity.Documents.Imaging.GcBitmap.BitBlt

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_BitBlt_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.BitBlt*">BitBlt Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_BitBlt_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.BitBlt*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_BitBlt_GrapeCity_Documents_Imaging_GcBitmap_System_Int32_System_Int32_System_Nullable_System_Drawing_Rectangle__System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.BitBlt(GrapeCity.Documents.Imaging.GcBitmap,System.Int32,System.Int32,System.Nullable{System.Drawing.Rectangle},System.Int32,System.Int32,System.Int32,System.Int32)">BitBlt(GcBitmap, int, int, Rectangle?, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source bitmap into the current bitmap.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void BitBlt(GcBitmap srcBitmap, int xDst, int yDst, Rectangle? clipRect = null, int width = 2147483647, int height = 2147483647, int xSrc = 0, int ySrc = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub BitBlt(srcBitmap As GcBitmap, xDst As Integer, yDst As Integer, Optional clipRect As Rectangle? = Nothing, Optional width As Integer = 2147483647, Optional height As Integer = 2147483647, Optional xSrc As Integer = 0, Optional ySrc As Integer = 0)</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">srcBitmap</span></td>
      <td><p>The source bitmap.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">xDst</span></td>
      <td><p>The x-coordinate, in pixels, of the upper-left corner of the destination rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">yDst</span></td>
      <td><p>The y-coordinate, in pixels, of the upper-left corner of the destination rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>?</td>
      <td><span class="parametername">clipRect</span></td>
      <td><p>The affected rectangle of the destination <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width, in pixels, of the source and destination rectangles.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height, in pixels, of the source and destination rectangles.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">xSrc</span></td>
      <td><p>The x-coordinate, in pixels, of the upper-left corner of the source rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">ySrc</span></td>
      <td><p>The y-coordinate, in pixels, of the upper-left corner of the source rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
