# GrapeCity.Documents.Imaging.GrayscaleBitmap.AutoContrast

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GrayscaleBitmap_AutoContrast_" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.AutoContrast*">AutoContrast Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GrayscaleBitmap_AutoContrast_" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.AutoContrast*"></a>
<h4 id="GrapeCity_Documents_Imaging_GrayscaleBitmap_AutoContrast" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.AutoContrast">AutoContrast()</h4>
<div class="markdown level1 summary"><p>Modifies pixel intensities such that available 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 AutoContrast()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AutoContrast()</code></pre>
</div>


<a id="GrapeCity_Documents_Imaging_GrayscaleBitmap_AutoContrast_" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.AutoContrast*"></a>
<h4 id="GrapeCity_Documents_Imaging_GrayscaleBitmap_AutoContrast_System_Single_System_Single_" data-uid="GrapeCity.Documents.Imaging.GrayscaleBitmap.AutoContrast(System.Single,System.Single)">AutoContrast(float, float)</h4>
<div class="markdown level1 summary"><p>Modifies pixel intensities, clipping extremely low and extremely high values, such that available 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 AutoContrast(float lowClipPercent, float highClipPercent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AutoContrast(lowClipPercent As Single, highClipPercent As Single)</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.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>
