# GrapeCity.Documents.Imaging.GrayscaleBitmap.ApplyGlow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GrayscaleBitmap_ApplyGlow_" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.ApplyGlow*">ApplyGlow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GrayscaleBitmap_ApplyGlow_" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.ApplyGlow*"></a>
<h4 id="GrapeCity_Documents_Imaging_GrayscaleBitmap_ApplyGlow_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.ApplyGlow(System.Int32,System.Int32)">ApplyGlow(int, int)</h4>
<div class="markdown level1 summary"><p>When applied to a grayscale mask built from a color image using the <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.ToGrayscaleBitmap.html#GrapeCity_Documents_Imaging_GcBitmap_ToGrayscaleBitmap_GrapeCity_Documents_Imaging_ColorChannel_System_Boolean_">ToGrayscaleBitmap(ColorChannel, bool)</a> method,
modifies it so that the result can be used as a transparency mask to produce <b>Glow</b> or <b>Soft Edges</b> effect.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ApplyGlow(int infRadius = 4, int blurRadius = 6)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ApplyGlow(Optional infRadius As Integer = 4, Optional blurRadius As Integer = 6)</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.int32">int</a></td>
      <td><span class="parametername">infRadius</span></td>
      <td><p>The radius of inflation (positive, glow) or deflation (negative, soft edges), in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">blurRadius</span></td>
      <td><p>The radius of Gaussian blur, in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
