# GrapeCity.Documents.Imaging.GcBitmap.ApplySoftEdges

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_ApplySoftEdges_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ApplySoftEdges*">ApplySoftEdges Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_ApplySoftEdges_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ApplySoftEdges*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_ApplySoftEdges_System_Nullable_System_Drawing_Color__System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ApplySoftEdges(System.Nullable{System.Drawing.Color},System.Int32,System.Int32)">ApplySoftEdges(Color?, int, int)</h4>
<div class="markdown level1 summary"><p>Applies a soft edges effect to the current image.</p>
<p>
The soft edges effect deflates all non-transparent areas of an image by a specified amount,
then applies a Gaussian blur to make the border smooth.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ApplySoftEdges(Color? backColor, int inflationRadius = -6, int gaussianBlurRadius = 9)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ApplySoftEdges(backColor As Color?, Optional inflationRadius As Integer = -6, Optional gaussianBlurRadius As Integer = 9)</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.int32">int</a></td>
      <td><span class="parametername">inflationRadius</span></td>
      <td><p>The negative radius of inflation, 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>
</div>
