# GrapeCity.Documents.Imaging.GcBitmap.AutoLevel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_AutoLevel_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AutoLevel*">AutoLevel Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_AutoLevel_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AutoLevel*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_AutoLevel_System_Boolean_System_Single_System_Single_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.AutoLevel(System.Boolean,System.Single,System.Single)">AutoLevel(bool, float, float)</h4>
<div class="markdown level1 summary"><p>Modifies R, G, B color intensities such that the maximum range of values (0..255) is fully covered.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AutoLevel(bool keepRelativeIntensities = true, float lowClipPercent = 0.2, float highClipPercent = 0.2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AutoLevel(Optional keepRelativeIntensities As Boolean = True, Optional lowClipPercent As Single = 0.2, Optional highClipPercent As Single = 0.2)</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.boolean">bool</a></td>
      <td><span class="parametername">keepRelativeIntensities</span></td>
      <td><p>Indicates if the method should keep the relative intensities of the color channels unchanged.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">lowClipPercent</span></td>
      <td><p>The percent of extremely low values to be clipped, not greater than 10.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">highClipPercent</span></td>
      <td><p>The percent of extremely high values to be clipped, not greater than 10.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
