# C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.AlphaBlend

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_AlphaBlend_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.AlphaBlend*">AlphaBlend Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_AlphaBlend_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.AlphaBlend*"></a>
<h4 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_AlphaBlend_C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_System_Drawing_Rectangle_System_Drawing_Rectangle_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.AlphaBlend(C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext,System.Drawing.Rectangle,System.Drawing.Rectangle)">AlphaBlend(DeviceContext, Rectangle, Rectangle)</h4>
<div class="markdown level1 summary"><p>Displays bitmaps that have transparent or semitransparent pixels.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void AlphaBlend(DeviceContext deviceContext, Rectangle destRectangle, Rectangle srcRectangle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub AlphaBlend(deviceContext As DeviceContext, destRectangle As Rectangle, srcRectangle As Rectangle)</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="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>The source <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.html">DeviceContext</a> object.</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">destRectangle</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> indicates 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">srcRectangle</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> indicates the source rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_AlphaBlend_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.AlphaBlend*"></a>
<h4 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_AlphaBlend_C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_System_Drawing_Rectangle_System_Drawing_Rectangle_System_Byte_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.AlphaBlend(C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext,System.Drawing.Rectangle,System.Drawing.Rectangle,System.Byte)">AlphaBlend(DeviceContext, Rectangle, Rectangle, byte)</h4>
<div class="markdown level1 summary"><p>Displays bitmaps with a constant transparent value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void AlphaBlend(DeviceContext deviceContext, Rectangle destRectangle, Rectangle srcRectangle, byte srcConstantAlpha)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub AlphaBlend(deviceContext As DeviceContext, destRectangle As Rectangle, srcRectangle As Rectangle, srcConstantAlpha As Byte)</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="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>The source <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.html">DeviceContext</a> object.</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">destRectangle</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> indicates 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">srcRectangle</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> indicates the source rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">srcConstantAlpha</span></td>
      <td><p>A <b>byte</b> indicates the constant alpha value of source.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
