# GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.SetTransparencyMask

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_SetTransparencyMask_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.SetTransparencyMask*">SetTransparencyMask Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_SetTransparencyMask_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.SetTransparencyMask*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_GcD2DBitmapGraphics_SetTransparencyMask_System_Object_" data-uid="GrapeCity.Documents.Imaging.Windows.GcD2DBitmapGraphics.SetTransparencyMask(System.Object)">SetTransparencyMask(object)</h4>
<div class="markdown level1 summary"><p>For internal use.
Sets a transparency mask for subsequent drawing operations, <code class="paramref">mask</code>
was created with IGcGraphicsLayer.CreateTransparencyMask().
Note! <code class="paramref">mask</code> can be null, in this case mask should be removed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void SetTransparencyMask(object nativeMask)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub SetTransparencyMask(nativeMask 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">nativeMask</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">GcGraphics.SetTransparencyMask(object)</a></div>
</div>
