# GrapeCity.Documents.Imaging.PaletteEntry

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Imaging_PaletteEntry" data-uid="GrapeCity.Documents.Imaging.PaletteEntry" class="text-break">PaletteEntry Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a palette color for an indexed bitmap.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.html">PaletteEntry</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformattable">IFormattable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Imaging.html">GrapeCity.Documents.Imaging</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Imaging_PaletteEntry_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct PaletteEntry : IEquatable&lt;PaletteEntry&gt;, IFormattable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure PaletteEntry
    Implements IEquatable(Of PaletteEntry), IFormattable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.-ctor.html#GrapeCity_Documents_Imaging_PaletteEntry__ctor_System_Int32_System_Int32_System_Int32_">PaletteEntry(int, int, int)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.-ctor.html#GrapeCity_Documents_Imaging_PaletteEntry__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">PaletteEntry(int, int, int, int)</a>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_A" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.A">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.A.html#GrapeCity_Documents_Imaging_PaletteEntry_A">A</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of the Alpha channel (if applicable).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_B" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.B">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.B.html#GrapeCity_Documents_Imaging_PaletteEntry_B">B</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of the Blue channel.</p>
<p>If applicable, the value must be premultiplied by the associated alpha component.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_G" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.G">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.G.html#GrapeCity_Documents_Imaging_PaletteEntry_G">G</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of the Green channel.</p>
<p>If applicable, the value must be premultiplied by the associated alpha component.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_R" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.R">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.R.html#GrapeCity_Documents_Imaging_PaletteEntry_R">R</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of the Red channel.</p>
<p>If applicable, the value must be premultiplied by the associated alpha component.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_Equals_GrapeCity_Documents_Imaging_PaletteEntry_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.Equals(GrapeCity.Documents.Imaging.PaletteEntry)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.Equals.html#GrapeCity_Documents_Imaging_PaletteEntry_Equals_GrapeCity_Documents_Imaging_PaletteEntry_">Equals(PaletteEntry)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.html">PaletteEntry</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_Equals_System_Object_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.Equals.html#GrapeCity_Documents_Imaging_PaletteEntry_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_GetHashCode" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.GetHashCode">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.GetHashCode.html#GrapeCity_Documents_Imaging_PaletteEntry_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_ToString" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.ToString">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.ToString.html#GrapeCity_Documents_Imaging_PaletteEntry_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_ToString_System_IFormatProvider_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.ToString(System.IFormatProvider)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.ToString.html#GrapeCity_Documents_Imaging_PaletteEntry_ToString_System_IFormatProvider_">ToString(IFormatProvider)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_ToString_System_String_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.ToString(System.String)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.ToString.html#GrapeCity_Documents_Imaging_PaletteEntry_ToString_System_String_">ToString(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_ToString_System_String_System_IFormatProvider_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.ToString(System.String,System.IFormatProvider)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.ToString.html#GrapeCity_Documents_Imaging_PaletteEntry_ToString_System_String_System_IFormatProvider_">ToString(string, IFormatProvider)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_op_Equality_GrapeCity_Documents_Imaging_PaletteEntry_GrapeCity_Documents_Imaging_PaletteEntry_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.op_Equality(GrapeCity.Documents.Imaging.PaletteEntry,GrapeCity.Documents.Imaging.PaletteEntry)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.op_Equality.html#GrapeCity_Documents_Imaging_PaletteEntry_op_Equality_GrapeCity_Documents_Imaging_PaletteEntry_GrapeCity_Documents_Imaging_PaletteEntry_">operator ==(PaletteEntry, PaletteEntry)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are equal.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_PaletteEntry_op_Inequality_GrapeCity_Documents_Imaging_PaletteEntry_GrapeCity_Documents_Imaging_PaletteEntry_" data-uid="GrapeCity.Documents.Imaging.PaletteEntry.op_Inequality(GrapeCity.Documents.Imaging.PaletteEntry,GrapeCity.Documents.Imaging.PaletteEntry)">
          <a class="xref" href="GrapeCity.Documents.Imaging.PaletteEntry.op_Inequality.html#GrapeCity_Documents_Imaging_PaletteEntry_op_Inequality_GrapeCity_Documents_Imaging_PaletteEntry_GrapeCity_Documents_Imaging_PaletteEntry_">operator !=(PaletteEntry, PaletteEntry)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
