# GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyMask

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_CreateTransparencyMask_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyMask*">CreateTransparencyMask Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_CreateTransparencyMask_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyMask*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_CreateTransparencyMask_GrapeCity_Documents_Drawing_IGcTransparencyGroup_GrapeCity_Documents_Drawing_TransparencyMaskType_System_Drawing_Rectangle_GrapeCity_Documents_Drawing_IGcTransparencyMaskFilter_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.CreateTransparencyMask(GrapeCity.Documents.Drawing.IGcTransparencyGroup,GrapeCity.Documents.Drawing.TransparencyMaskType,System.Drawing.Rectangle,GrapeCity.Documents.Drawing.IGcTransparencyMaskFilter)">CreateTransparencyMask(IGcTransparencyGroup, TransparencyMaskType, Rectangle, IGcTransparencyMaskFilter)</h4>
<div class="markdown level1 summary"><p>For internal use.
Creates a transparency mask from a <span class="xref">GrapeCity.Documents.Drawing.IGcTransparencyGroup</span>,
this mask can be specified for this graphics using <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">SetTransparencyMask(object)</a> method.
Note! If the transparency mask supports <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a> interface it will be automatically disposed after usage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override object CreateTransparencyMask(IGcTransparencyGroup layer, TransparencyMaskType maskType, Rectangle maskBounds, IGcTransparencyMaskFilter filter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function CreateTransparencyMask(layer As IGcTransparencyGroup, maskType As TransparencyMaskType, maskBounds As Rectangle, filter As IGcTransparencyMaskFilter) As Object</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><span class="xref">IGcTransparencyGroup</span></td>
      <td><span class="parametername">layer</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">TransparencyMaskType</span></td>
      <td><span class="parametername">maskType</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">maskBounds</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">IGcTransparencyMaskFilter</span></td>
      <td><span class="parametername">filter</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></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.CreateTransparencyMask(IGcTransparencyGroup, TransparencyMaskType, Rectangle, IGcTransparencyMaskFilter)</a></div>
</div>
