# CSJ2K.Color.Boxes.PaletteBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_Color_Boxes_PaletteBox" data-uid="CSJ2K.Color.Boxes.PaletteBox" class="text-break">PaletteBox Class
</h1>
  <div class="markdown level0 summary"><p>This class models the palette box contained in a JP2
image.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="CSJ2K.Color.Boxes.JP2Box.html">JP2Box</a></div>
    <div class="level2"><span class="xref">PaletteBox</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.Color.Boxes.html">CSJ2K.Color.Boxes</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Pdf.4.8.dll</h6>
  <h5 id="CSJ2K_Color_Boxes_PaletteBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class PaletteBox : JP2Box</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class PaletteBox
    Inherits JP2Box</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="CSJ2K_Color_Boxes_PaletteBox__ctor_CSJ2K_j2k_io_RandomAccessIO_System_Int32_" data-uid="CSJ2K.Color.Boxes.PaletteBox.#ctor(CSJ2K.j2k.io.RandomAccessIO,System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.-ctor.html#CSJ2K_Color_Boxes_PaletteBox__ctor_CSJ2K_j2k_io_RandomAccessIO_System_Int32_">PaletteBox(RandomAccessIO, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Construct a PaletteBox from an input image.</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="CSJ2K_Color_Boxes_PaletteBox_NumColumns" data-uid="CSJ2K.Color.Boxes.PaletteBox.NumColumns">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.NumColumns.html#CSJ2K_Color_Boxes_PaletteBox_NumColumns">NumColumns</a>
        </td>
        <td class="markdown level1 summary"><p>Return the number of palette columns.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Boxes_PaletteBox_NumEntries" data-uid="CSJ2K.Color.Boxes.PaletteBox.NumEntries">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.NumEntries.html#CSJ2K_Color_Boxes_PaletteBox_NumEntries">NumEntries</a>
        </td>
        <td class="markdown level1 summary"><p>Return the number of palette entries.</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="CSJ2K_Color_Boxes_PaletteBox_ToString" data-uid="CSJ2K.Color.Boxes.PaletteBox.ToString">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.ToString.html#CSJ2K_Color_Boxes_PaletteBox_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Return a suitable String representation of the class instance.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Boxes_PaletteBox_getBitDepth_System_Int32_" data-uid="CSJ2K.Color.Boxes.PaletteBox.getBitDepth(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.getBitDepth.html#CSJ2K_Color_Boxes_PaletteBox_getBitDepth_System_Int32_">getBitDepth(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return the bitdepth of palette entries.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Boxes_PaletteBox_getEntry_System_Int32_System_Int32_" data-uid="CSJ2K.Color.Boxes.PaletteBox.getEntry(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.getEntry.html#CSJ2K_Color_Boxes_PaletteBox_getEntry_System_Int32_System_Int32_">getEntry(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return an entry for a given index and column.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Boxes_PaletteBox_isSigned_System_Int32_" data-uid="CSJ2K.Color.Boxes.PaletteBox.isSigned(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.isSigned.html#CSJ2K_Color_Boxes_PaletteBox_isSigned_System_Int32_">isSigned(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Are entries signed predicate.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Boxes_PaletteBox_isUnSigned_System_Int32_" data-uid="CSJ2K.Color.Boxes.PaletteBox.isUnSigned(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.PaletteBox.isUnSigned.html#CSJ2K_Color_Boxes_PaletteBox_isUnSigned_System_Int32_">isUnSigned(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Are entries unsigned predicate.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
