# CSJ2K.Color.Boxes.ComponentMappingBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_Color_Boxes_ComponentMappingBox" data-uid="CSJ2K.Color.Boxes.ComponentMappingBox" class="text-break">ComponentMappingBox Class
</h1>
  <div class="markdown level0 summary"><p>This class maps the components in the codestream
to channels in the image.  It models the Component
Mapping box in the JP2 header.</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">ComponentMappingBox</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_ComponentMappingBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class ComponentMappingBox : JP2Box</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class ComponentMappingBox
    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_ComponentMappingBox__ctor_CSJ2K_j2k_io_RandomAccessIO_System_Int32_" data-uid="CSJ2K.Color.Boxes.ComponentMappingBox.#ctor(CSJ2K.j2k.io.RandomAccessIO,System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.ComponentMappingBox.-ctor.html#CSJ2K_Color_Boxes_ComponentMappingBox__ctor_CSJ2K_j2k_io_RandomAccessIO_System_Int32_">ComponentMappingBox(RandomAccessIO, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Construct a ComponentMappingBox 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_ComponentMappingBox_NChannels" data-uid="CSJ2K.Color.Boxes.ComponentMappingBox.NChannels">
          <a class="xref" href="CSJ2K.Color.Boxes.ComponentMappingBox.NChannels.html#CSJ2K_Color_Boxes_ComponentMappingBox_NChannels">NChannels</a>
        </td>
        <td class="markdown level1 summary"></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_ComponentMappingBox_ToString" data-uid="CSJ2K.Color.Boxes.ComponentMappingBox.ToString">
          <a class="xref" href="CSJ2K.Color.Boxes.ComponentMappingBox.ToString.html#CSJ2K_Color_Boxes_ComponentMappingBox_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_ComponentMappingBox_getCMP_System_Int32_" data-uid="CSJ2K.Color.Boxes.ComponentMappingBox.getCMP(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.ComponentMappingBox.getCMP.html#CSJ2K_Color_Boxes_ComponentMappingBox_getCMP_System_Int32_">getCMP(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Boxes_ComponentMappingBox_getMTYP_System_Int32_" data-uid="CSJ2K.Color.Boxes.ComponentMappingBox.getMTYP(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.ComponentMappingBox.getMTYP.html#CSJ2K_Color_Boxes_ComponentMappingBox_getMTYP_System_Int32_">getMTYP(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return the channel type.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Boxes_ComponentMappingBox_getPCOL_System_Int32_" data-uid="CSJ2K.Color.Boxes.ComponentMappingBox.getPCOL(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Boxes.ComponentMappingBox.getPCOL.html#CSJ2K_Color_Boxes_ComponentMappingBox_getPCOL_System_Int32_">getPCOL(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return the palette index for the channel.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
