# GrapeCity.Documents.Imaging.GcBitmap.AddGlow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_AddGlow_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AddGlow*">AddGlow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_AddGlow_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AddGlow*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_AddGlow_System_Nullable_System_Drawing_Color__System_Drawing_Color_System_Single_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AddGlow(System.Nullable{System.Drawing.Color},System.Drawing.Color,System.Single,System.Int32,System.Int32)">AddGlow(Color?, Color, float, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a new bitmap by adding a glow to text and graphics on the current image.</p>
<p>
The glow effect inflates all non-transparent areas of an image by a specified amount,
then applies a Gaussian blur to make the border smooth. 
The glow appears only if some pixels of the current image are transparent or semi-transparent.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcBitmap AddGlow(Color? backColor, Color glowColor, float glowOpacity = 0.8, int inflationRadius = 6, int gaussianBlurRadius = 9)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddGlow(backColor As Color?, glowColor As Color, Optional glowOpacity As Single = 0.8, Optional inflationRadius As Integer = 6, Optional gaussianBlurRadius As Integer = 9) As GcBitmap</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.color">Color</a>?</td>
      <td><span class="parametername">backColor</span></td>
      <td><p>The optional background color of the resulting image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">glowColor</span></td>
      <td><p>The glow color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">glowOpacity</span></td>
      <td><p>The glow opacity, from 0 to 1.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">inflationRadius</span></td>
      <td><p>The glow inflation radius, 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">gaussianBlurRadius</span></td>
      <td><p>The Gaussian blur radius, in pixels.</p>
</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="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> with the glow effect added.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
