# GrapeCity.Documents.Imaging.GcBitmap.AlphaBlend

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_AlphaBlend_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AlphaBlend*">AlphaBlend Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_AlphaBlend_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AlphaBlend*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_AlphaBlend_GrapeCity_Documents_Imaging_GcBitmap_System_Int32_System_Int32_System_Nullable_System_Drawing_Rectangle__System_Single_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AlphaBlend(GrapeCity.Documents.Imaging.GcBitmap,System.Int32,System.Int32,System.Nullable{System.Drawing.Rectangle},System.Single,System.Int32,System.Int32,System.Int32,System.Int32)">AlphaBlend(GcBitmap, int, int, Rectangle?, float, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Draws the source bitmap with the specified opacity 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 AlphaBlend(GcBitmap srcBitmap, int xDst, int yDst, Rectangle? clipRect = null, float opacity = 1, 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 AlphaBlend(srcBitmap As GcBitmap, xDst As Integer, yDst As Integer, Optional clipRect As Rectangle? = Nothing, Optional opacity As Single = 1, 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.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>
    <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>
