# CSJ2K.Color.Resampler

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_Color_Resampler" data-uid="CSJ2K.Color.Resampler" class="text-break">Resampler Class
</h1>
  <div class="markdown level0 summary"><p>This class resamples the components of an image so that
all have the same number of samples.  The current implementation
only handles the case of 2:1 upsampling.</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">Resampler</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_Resampler_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Resampler : ColorSpaceMapper, BlkImgDataSrc, ImgData</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Resampler
    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_Resampler__ctor_CSJ2K_j2k_image_BlkImgDataSrc_CSJ2K_Color_ColorSpace_" data-uid="CSJ2K.Color.Resampler.#ctor(CSJ2K.j2k.image.BlkImgDataSrc,CSJ2K.Color.ColorSpace)">
          <a class="xref" href="CSJ2K.Color.Resampler.-ctor.html#CSJ2K_Color_Resampler__ctor_CSJ2K_j2k_image_BlkImgDataSrc_CSJ2K_Color_ColorSpace_">Resampler(BlkImgDataSrc, ColorSpace)</a>
        </td>
        <td class="markdown level1 summary"><p>Ctor resamples a BlkImgDataSrc so that all components
have the same number of samples.</p>
<pre><code>       Note the present implementation does only two to one
       respampling in either direction (row, column).
</code></pre>
</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_Resampler_ToString" data-uid="CSJ2K.Color.Resampler.ToString">
          <a class="xref" href="CSJ2K.Color.Resampler.ToString.html#CSJ2K_Color_Resampler_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Return an appropriate String representation of this Resampler instance.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Resampler_createInstance_CSJ2K_j2k_image_BlkImgDataSrc_CSJ2K_Color_ColorSpace_" data-uid="CSJ2K.Color.Resampler.createInstance(CSJ2K.j2k.image.BlkImgDataSrc,CSJ2K.Color.ColorSpace)">
          <a class="xref" href="CSJ2K.Color.Resampler.createInstance.html#CSJ2K_Color_Resampler_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_Resampler_getCompData_CSJ2K_j2k_image_DataBlk_System_Int32_" data-uid="CSJ2K.Color.Resampler.getCompData(CSJ2K.j2k.image.DataBlk,System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getCompData.html#CSJ2K_Color_Resampler_getCompData_CSJ2K_j2k_image_DataBlk_System_Int32_">getCompData(DataBlk, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Resampler_getCompImgHeight_System_Int32_" data-uid="CSJ2K.Color.Resampler.getCompImgHeight(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getCompImgHeight.html#CSJ2K_Color_Resampler_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>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Resampler_getCompImgWidth_System_Int32_" data-uid="CSJ2K.Color.Resampler.getCompImgWidth(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getCompImgWidth.html#CSJ2K_Color_Resampler_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_Resampler_getCompSubsX_System_Int32_" data-uid="CSJ2K.Color.Resampler.getCompSubsX(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getCompSubsX.html#CSJ2K_Color_Resampler_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.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Resampler_getCompSubsY_System_Int32_" data-uid="CSJ2K.Color.Resampler.getCompSubsY(System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getCompSubsY.html#CSJ2K_Color_Resampler_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.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Resampler_getInternCompData_CSJ2K_j2k_image_DataBlk_System_Int32_" data-uid="CSJ2K.Color.Resampler.getInternCompData(CSJ2K.j2k.image.DataBlk,System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getInternCompData.html#CSJ2K_Color_Resampler_getInternCompData_CSJ2K_j2k_image_DataBlk_System_Int32_">getInternCompData(DataBlk, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_Resampler_getTileCompHeight_System_Int32_System_Int32_" data-uid="CSJ2K.Color.Resampler.getTileCompHeight(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getTileCompHeight.html#CSJ2K_Color_Resampler_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_Resampler_getTileCompWidth_System_Int32_System_Int32_" data-uid="CSJ2K.Color.Resampler.getTileCompWidth(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.Color.Resampler.getTileCompWidth.html#CSJ2K_Color_Resampler_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>
