# GrapeCity.Documents.Imaging.GcBitmap.ShrinkARGBFormat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_ShrinkARGBFormat_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ShrinkARGBFormat*">ShrinkARGBFormat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_ShrinkARGBFormat_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ShrinkARGBFormat*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_ShrinkARGBFormat_System_Int32_GrapeCity_Documents_Imaging_DitheringMethod_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ShrinkARGBFormat(System.Int32,GrapeCity.Documents.Imaging.DitheringMethod)">ShrinkARGBFormat(int, DitheringMethod)</h4>
<div class="markdown level1 summary"><p>Changes pixel format from 8 bits per channel to lower values with two-dimensional error diffusion.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ShrinkARGBFormat(int bitsPerChannel, DitheringMethod ditheringMethod)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ShrinkARGBFormat(bitsPerChannel As Integer, ditheringMethod As DitheringMethod)</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">bitsPerChannel</span></td>
      <td><p>The target number of bits per channel (from 1 to 8).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.DitheringMethod.html">DitheringMethod</a></td>
      <td><span class="parametername">ditheringMethod</span></td>
      <td><p>The method of two-dimensional error diffusion dithering.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_GcBitmap_ShrinkARGBFormat_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ShrinkARGBFormat*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_ShrinkARGBFormat_System_Int32_System_Int32_System_Int32_System_Int32_GrapeCity_Documents_Imaging_DitheringMethod_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.ShrinkARGBFormat(System.Int32,System.Int32,System.Int32,System.Int32,GrapeCity.Documents.Imaging.DitheringMethod)">ShrinkARGBFormat(int, int, int, int, DitheringMethod)</h4>
<div class="markdown level1 summary"><p>Changes pixel format from 8 bits per channel to lower values with two-dimensional error diffusion.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ShrinkARGBFormat(int bitsPerAlpha, int bitsPerRed, int bitsPerGreen, int bitsPerBlue, DitheringMethod ditheringMethod)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ShrinkARGBFormat(bitsPerAlpha As Integer, bitsPerRed As Integer, bitsPerGreen As Integer, bitsPerBlue As Integer, ditheringMethod As DitheringMethod)</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">bitsPerAlpha</span></td>
      <td><p>The target number of bits per Alpha channel (from 1 to 8), ignored for opaque images.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bitsPerRed</span></td>
      <td><p>The target number of bits per Red channel (from 1 to 8).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bitsPerGreen</span></td>
      <td><p>The target number of bits per Green channel (from 1 to 8).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bitsPerBlue</span></td>
      <td><p>The target number of bits per Blue channel (from 1 to 8).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.DitheringMethod.html">DitheringMethod</a></td>
      <td><span class="parametername">ditheringMethod</span></td>
      <td><p>The method of two-dimensional error diffusion dithering.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
