# GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyGroup

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_CreateTransparencyGroup_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyGroup*">CreateTransparencyGroup Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_CreateTransparencyGroup_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyGroup*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_CreateTransparencyGroup_System_Drawing_Rectangle_System_Boolean_System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyGroup(System.Drawing.Rectangle,System.Boolean,System.Boolean,System.Boolean)">CreateTransparencyGroup(Rectangle, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>For internal use.
Creates a <span class="xref">GrapeCity.Documents.Drawing.IGcTransparencyGroup</span> compatible with this graphics.
This group can be used later for:</p>
<ol>
<li>Compose with graphics using the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Composite(IGcTransparencyGroup, Rectangle, Point, float?)</a> method</li>
<li>Create a transparency mask from this group using the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">CreateTransparencyMask(IGcTransparencyGroup, TransparencyMaskType, Rectangle, IGcTransparencyMaskFilter)</a> method
Note! If the transparency group supports <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a> interface it will be automatically disposed after usage.</li>
</ol>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override IGcTransparencyGroup CreateTransparencyGroup(Rectangle size, bool isolated, bool knockout, bool pdfSoftMask)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function CreateTransparencyGroup(size As Rectangle, isolated As Boolean, knockout As Boolean, pdfSoftMask As Boolean) As IGcTransparencyGroup</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="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">size</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isolated</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">knockout</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pdfSoftMask</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">IGcTransparencyGroup</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">GcGraphics.CreateTransparencyGroup(Rectangle, bool, bool, bool)</a></div>
</div>
