# GrapeCity.Documents.Imaging.GcBitmap.MergePalettes

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_MergePalettes_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.MergePalettes*">MergePalettes Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_MergePalettes_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.MergePalettes*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_MergePalettes_System_Int32_System_UInt32_____" data-uid="GrapeCity.Documents.Imaging.GcBitmap.MergePalettes(System.Int32,System.UInt32[][])">MergePalettes(int, params uint[][])</h4>
<div class="markdown level1 summary"><p>Merges sorted arrays of unique colors in 32-bit ARGB format (returned from <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.ExtractColors.html#GrapeCity_Documents_Imaging_GcBitmap_ExtractColors_System_Nullable_System_Drawing_Rectangle__">ExtractColors(Rectangle?)</a>)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static uint[] MergePalettes(int minimalAlpha, params uint[][] palettes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function MergePalettes(minimalAlpha As Integer, ParamArray palettes As UInteger()()) As UInteger()</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">minimalAlpha</span></td>
      <td><p>Palette entries with Alpha less than the specified value (between 0 and 255) are skipped.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a>[][]</td>
      <td><span class="parametername">palettes</span></td>
      <td><p>A set of palettes with sorted arrays of unique colors.</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="https://learn.microsoft.com/dotnet/api/system.uint32">uint</a>[]</td>
      <td><p>A sorted array with unique colors presented in one palette at least.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
