# CSJ2K.Color.PalettizedColorSpaceMapper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_Color_PalettizedColorSpaceMapper" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper" class="text-break">PalettizedColorSpaceMapper Class
</h1>
  <div class="markdown level0 summary"><p>This class provides decoding of images with palettized colorspaces.
Here each sample in the input is treated as an index into a color
palette of triplet sRGB output values.</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.j2k.image.ImgDataAdapter.html">ImgDataAdapter</a></div>
    <div class="level2"><a class="xref" href="CSJ2K.Color.ColorSpaceMapper.html">ColorSpaceMapper</a></div>
    <div class="level3"><span class="xref">PalettizedColorSpaceMapper</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.image.BlkImgDataSrc.html">BlkImgDataSrc</a></div>
    <div><a class="xref" href="CSJ2K.j2k.image.ImgData.html">ImgData</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.Color.html">CSJ2K.Color</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Pdf.4.8.dll</h6>
  <h5 id="CSJ2K_Color_PalettizedColorSpaceMapper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PalettizedColorSpaceMapper : ColorSpaceMapper, BlkImgDataSrc, ImgData</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PalettizedColorSpaceMapper
    Inherits ColorSpaceMapper
    Implements BlkImgDataSrc, ImgData</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_PalettizedColorSpaceMapper__ctor_CSJ2K_j2k_image_BlkImgDataSrc_CSJ2K_Color_ColorSpace_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.#ctor(CSJ2K.j2k.image.BlkImgDataSrc,CSJ2K.Color.ColorSpace)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.-ctor.html#CSJ2K_Color_PalettizedColorSpaceMapper__ctor_CSJ2K_j2k_image_BlkImgDataSrc_CSJ2K_Color_ColorSpace_">PalettizedColorSpaceMapper(BlkImgDataSrc, ColorSpace)</a>
        </td>
        <td class="markdown level1 summary"><p>Ctor which creates an ICCProfile for the image and initializes
all data objects (input, working, and output).</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_PalettizedColorSpaceMapper_NumComps" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.NumComps">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.NumComps.html#CSJ2K_Color_PalettizedColorSpaceMapper_NumComps">NumComps</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of components in the image.</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_PalettizedColorSpaceMapper_ToString" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.ToString">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.ToString.html#CSJ2K_Color_PalettizedColorSpaceMapper_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_createInstance_CSJ2K_j2k_image_BlkImgDataSrc_CSJ2K_Color_ColorSpace_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.createInstance(CSJ2K.j2k.image.BlkImgDataSrc,CSJ2K.Color.ColorSpace)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.createInstance.html#CSJ2K_Color_PalettizedColorSpaceMapper_createInstance_CSJ2K_j2k_image_BlkImgDataSrc_CSJ2K_Color_ColorSpace_">createInstance(BlkImgDataSrc, ColorSpace)</a>
        </td>
        <td class="markdown level1 summary"><p>Factory method for creating instances of this class.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getCompData_CSJ2K_j2k_image_DataBlk_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getCompData(CSJ2K.j2k.image.DataBlk,System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getCompData.html#CSJ2K_Color_PalettizedColorSpaceMapper_getCompData_CSJ2K_j2k_image_DataBlk_System_Int32_">getCompData(DataBlk, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getCompImgHeight_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getCompImgHeight(System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getCompImgHeight.html#CSJ2K_Color_PalettizedColorSpaceMapper_getCompImgHeight_System_Int32_">getCompImgHeight(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the height in pixels of the specified component in the overall
image.</p>
<pre><code>       &lt;p&gt;This default implementation returns the value of the source.&lt;/p&gt;
</code></pre>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getCompImgWidth_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getCompImgWidth(System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getCompImgWidth.html#CSJ2K_Color_PalettizedColorSpaceMapper_getCompImgWidth_System_Int32_">getCompImgWidth(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the width in pixels of the specified component in the overall
image.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getCompSubsX_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getCompSubsX(System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getCompSubsX.html#CSJ2K_Color_PalettizedColorSpaceMapper_getCompSubsX_System_Int32_">getCompSubsX(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the component subsampling factor in the horizontal direction,
for the specified component. This is, approximately, the ratio of
dimensions between the reference grid and the component itself, see the
'ImgData' interface desription for details.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getCompSubsY_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getCompSubsY(System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getCompSubsY.html#CSJ2K_Color_PalettizedColorSpaceMapper_getCompSubsY_System_Int32_">getCompSubsY(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the component subsampling factor in the vertical direction, for
the specified component. This is, approximately, the ratio of
dimensions between the reference grid and the component itself, see the
'ImgData' interface desription for details.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getCompULX_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getCompULX(System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getCompULX.html#CSJ2K_Color_PalettizedColorSpaceMapper_getCompULX_System_Int32_">getCompULX(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the horizontal coordinate of the upper-left corner of the
specified component in the current tile.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getCompULY_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getCompULY(System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getCompULY.html#CSJ2K_Color_PalettizedColorSpaceMapper_getCompULY_System_Int32_">getCompULY(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the vertical coordinate of the upper-left corner of the
specified component in the current tile.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getInternCompData_CSJ2K_j2k_image_DataBlk_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getInternCompData(CSJ2K.j2k.image.DataBlk,System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getInternCompData.html#CSJ2K_Color_PalettizedColorSpaceMapper_getInternCompData_CSJ2K_j2k_image_DataBlk_System_Int32_">getInternCompData(DataBlk, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getNomRangeBits_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getNomRangeBits(System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getNomRangeBits.html#CSJ2K_Color_PalettizedColorSpaceMapper_getNomRangeBits_System_Int32_">getNomRangeBits(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getTileCompHeight_System_Int32_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getTileCompHeight(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getTileCompHeight.html#CSJ2K_Color_PalettizedColorSpaceMapper_getTileCompHeight_System_Int32_System_Int32_">getTileCompHeight(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the height in pixels of the specified tile-component.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_PalettizedColorSpaceMapper_getTileCompWidth_System_Int32_System_Int32_" data-uid="CSJ2K.Color.PalettizedColorSpaceMapper.getTileCompWidth(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.Color.PalettizedColorSpaceMapper.getTileCompWidth.html#CSJ2K_Color_PalettizedColorSpaceMapper_getTileCompWidth_System_Int32_System_Int32_">getTileCompWidth(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the width in pixels of the specified tile-component</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
