# GrapeCity.Documents.Imaging.PaletteEntry.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_PaletteEntry__ctor_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.#ctor*">PaletteEntry Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_PaletteEntry__ctor_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_PaletteEntry__ctor_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.#ctor(System.Int32,System.Int32,System.Int32)">PaletteEntry(int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.html">PaletteEntry</a> with given values for the color channels.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PaletteEntry(int r, int g, int b)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(r As Integer, g As Integer, b As Integer)</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">r</span></td>
      <td><p>The Red channel value (0..65535).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>The Green channel value (0..65535).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">b</span></td>
      <td><p>The Blue channel value (0..65535).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_PaletteEntry__ctor_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_PaletteEntry__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">PaletteEntry(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.html">PaletteEntry</a> with given (premultiplied by alpha) values for the color channels.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PaletteEntry(int r, int g, int b, int a)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(r As Integer, g As Integer, b As Integer, a As Integer)</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">r</span></td>
      <td><p>The Red channel value (0..65535), premultiplied by the associated alpha component.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>The Green channel value (0..65535), premultiplied by the associated alpha component.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">b</span></td>
      <td><p>The Blue channel value (0..65535), premultiplied by the associated alpha component.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">a</span></td>
      <td><p>The Alpha channel value (0..65535).</p>
</td>
    </tr>
  </tbody>
</table>
</div>
