# GrapeCity.Documents.Imaging.GcBitmap.CompositeAndBlend

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_CompositeAndBlend_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.CompositeAndBlend*">CompositeAndBlend Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_CompositeAndBlend_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.CompositeAndBlend*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_CompositeAndBlend_GrapeCity_Documents_Imaging_GcBitmap_System_Int32_System_Int32_GrapeCity_Documents_Imaging_CompositeMode_GrapeCity_Documents_Drawing_BlendMode_System_Nullable_System_Drawing_Rectangle__System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.CompositeAndBlend(GrapeCity.Documents.Imaging.GcBitmap,System.Int32,System.Int32,GrapeCity.Documents.Imaging.CompositeMode,GrapeCity.Documents.Drawing.BlendMode,System.Nullable{System.Drawing.Rectangle},System.Int32,System.Int32,System.Int32,System.Int32)">CompositeAndBlend(GcBitmap, int, int, CompositeMode, BlendMode, Rectangle?, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Applies the algorithms of Porter Duff compositing and blending to the current bitmap (used as backdrop, destination) and the source 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 CompositeAndBlend(GcBitmap srcBitmap, int xDst, int yDst, CompositeMode compositeMode, BlendMode blendMode = BlendMode.Normal, 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 CompositeAndBlend(srcBitmap As GcBitmap, xDst As Integer, yDst As Integer, compositeMode As CompositeMode, Optional blendMode As BlendMode = BlendMode.Normal, 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="GrapeCity.Documents.Imaging.CompositeMode.html">CompositeMode</a></td>
      <td><span class="parametername">compositeMode</span></td>
      <td><p>The Porter Duff compositing method.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.BlendMode.html">BlendMode</a></td>
      <td><span class="parametername">blendMode</span></td>
      <td><p>The blending method used to mix the source and destination colors.</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>
