# CSJ2K.j2k.image.ImgDataAdapter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_image_ImgDataAdapter" data-uid="CSJ2K.j2k.image.ImgDataAdapter" class="text-break">ImgDataAdapter Class
</h1>
  <div class="markdown level0 summary"><p>This class provides a default implementation of the methods in the
'ImgData' interface. The default implementation is just to return the value
of the source, where the source is another 'ImgData' object.</p>
<pre><code>       &lt;p&gt;This abstract class can be used to facilitate the development of other
       classes that implement 'ImgData'. For example a YCbCr color transform can
       inherit from this class and all the trivial methods do not have to be
       re-implemented.&lt;/p&gt;

       &lt;p&gt;If the default implementation of a method provided in this class does
       not suit a particular implementation of the 'ImgData' interface, the method
       can be overridden to implement the proper behavior.&lt;/p&gt;
</code></pre>
</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"><span class="xref">ImgDataAdapter</span></div>
      <div class="level2"><a class="xref" href="CSJ2K.Color.ColorSpaceMapper.html">ColorSpaceMapper</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.entropy.encoder.EntropyCoder.html">EntropyCoder</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.entropy.encoder.PostCompRateAllocator.html">PostCompRateAllocator</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.image.ImgDataConverter.html">ImgDataConverter</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.image.Tiler.html">Tiler</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.image.forwcomptransf.ForwCompTransf.html">ForwCompTransf</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.image.invcomptransf.InvCompTransf.html">InvCompTransf</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.quantization.quantizer.Quantizer.html">Quantizer</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.roi.encoder.ROIScaler.html">ROIScaler</a></div>
      <div class="level2"><a class="xref" href="CSJ2K.j2k.wavelet.analysis.ForwardWT.html">ForwardWT</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.image.ImgData.html">ImgData</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.image.html">CSJ2K.j2k.image</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Pdf.4.8.dll</h6>
  <h5 id="CSJ2K_j2k_image_ImgDataAdapter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ImgDataAdapter : ImgData</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ImgDataAdapter
    Implements 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_j2k_image_ImgDataAdapter__ctor_CSJ2K_j2k_image_ImgData_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.#ctor(CSJ2K.j2k.image.ImgData)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.-ctor.html#CSJ2K_j2k_image_ImgDataAdapter__ctor_CSJ2K_j2k_image_ImgData_">ImgDataAdapter(ImgData)</a>
        </td>
        <td class="markdown level1 summary"><p>Instantiates the ImgDataAdapter object specifying the ImgData source.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_imgdatasrc" data-uid="CSJ2K.j2k.image.ImgDataAdapter.imgdatasrc">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.imgdatasrc.html">imgdatasrc</a>
        </td>
        <td class="markdown level1 summary"><p>The ImgData source</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_tIdx" data-uid="CSJ2K.j2k.image.ImgDataAdapter.tIdx">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.tIdx.html">tIdx</a>
        </td>
        <td class="markdown level1 summary"><p>Index of the current tile</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_j2k_image_ImgDataAdapter_ImgHeight" data-uid="CSJ2K.j2k.image.ImgDataAdapter.ImgHeight">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.ImgHeight.html#CSJ2K_j2k_image_ImgDataAdapter_ImgHeight">ImgHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the overall height of the image in pixels. This is the image's
height without accounting for any component subsampling or tiling.</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_j2k_image_ImgDataAdapter_ImgULX" data-uid="CSJ2K.j2k.image.ImgDataAdapter.ImgULX">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.ImgULX.html#CSJ2K_j2k_image_ImgDataAdapter_ImgULX">ImgULX</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the horizontal coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid.</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_j2k_image_ImgDataAdapter_ImgULY" data-uid="CSJ2K.j2k.image.ImgDataAdapter.ImgULY">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.ImgULY.html#CSJ2K_j2k_image_ImgDataAdapter_ImgULY">ImgULY</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the vertical coordinate of the image origin, the top-left
corner, in the canvas system, on the reference grid.</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_j2k_image_ImgDataAdapter_ImgWidth" data-uid="CSJ2K.j2k.image.ImgDataAdapter.ImgWidth">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.ImgWidth.html#CSJ2K_j2k_image_ImgDataAdapter_ImgWidth">ImgWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the overall width of the image in pixels. This is the image's
width without accounting for any component subsampling or tiling.</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_j2k_image_ImgDataAdapter_NomTileHeight" data-uid="CSJ2K.j2k.image.ImgDataAdapter.NomTileHeight">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.NomTileHeight.html#CSJ2K_j2k_image_ImgDataAdapter_NomTileHeight">NomTileHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the nominal tiles height</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_NomTileWidth" data-uid="CSJ2K.j2k.image.ImgDataAdapter.NomTileWidth">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.NomTileWidth.html#CSJ2K_j2k_image_ImgDataAdapter_NomTileWidth">NomTileWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the nominal tiles width</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_NumComps" data-uid="CSJ2K.j2k.image.ImgDataAdapter.NumComps">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.NumComps.html#CSJ2K_j2k_image_ImgDataAdapter_NumComps">NumComps</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of components in the 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_j2k_image_ImgDataAdapter_TileHeight" data-uid="CSJ2K.j2k.image.ImgDataAdapter.TileHeight">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.TileHeight.html#CSJ2K_j2k_image_ImgDataAdapter_TileHeight">TileHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the overall height of the current tile in pixels. This is the
tile's height without accounting for any component subsampling. This is
also referred as the reference grid height in the current tile.</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_j2k_image_ImgDataAdapter_TileIdx" data-uid="CSJ2K.j2k.image.ImgDataAdapter.TileIdx">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.TileIdx.html#CSJ2K_j2k_image_ImgDataAdapter_TileIdx">TileIdx</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index of the current tile, relative to a standard scan-line
order.</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_j2k_image_ImgDataAdapter_TilePartULX" data-uid="CSJ2K.j2k.image.ImgDataAdapter.TilePartULX">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.TilePartULX.html#CSJ2K_j2k_image_ImgDataAdapter_TilePartULX">TilePartULX</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the horizontal tile partition offset in the reference grid</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_TilePartULY" data-uid="CSJ2K.j2k.image.ImgDataAdapter.TilePartULY">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.TilePartULY.html#CSJ2K_j2k_image_ImgDataAdapter_TilePartULY">TilePartULY</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the vertical tile offset in the reference grid</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_TileWidth" data-uid="CSJ2K.j2k.image.ImgDataAdapter.TileWidth">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.TileWidth.html#CSJ2K_j2k_image_ImgDataAdapter_TileWidth">TileWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the overall width of the current tile in pixels. This is the
tile's width without accounting for any component subsampling. This is
also referred as the reference grid width in the current tile.</p>
<pre><code>       &lt;p&gt;This default implementation returns the value of the source.&lt;/p&gt;
</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_j2k_image_ImgDataAdapter_getCompImgHeight_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getCompImgHeight(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getCompImgHeight.html#CSJ2K_j2k_image_ImgDataAdapter_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_j2k_image_ImgDataAdapter_getCompImgWidth_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getCompImgWidth(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getCompImgWidth.html#CSJ2K_j2k_image_ImgDataAdapter_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>
<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_j2k_image_ImgDataAdapter_getCompSubsX_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getCompSubsX(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getCompSubsX.html#CSJ2K_j2k_image_ImgDataAdapter_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>
<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_j2k_image_ImgDataAdapter_getCompSubsY_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getCompSubsY(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getCompSubsY.html#CSJ2K_j2k_image_ImgDataAdapter_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>
<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_j2k_image_ImgDataAdapter_getCompULX_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getCompULX(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getCompULX.html#CSJ2K_j2k_image_ImgDataAdapter_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>
<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_j2k_image_ImgDataAdapter_getCompULY_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getCompULY(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getCompULY.html#CSJ2K_j2k_image_ImgDataAdapter_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>
<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_j2k_image_ImgDataAdapter_getNomRangeBits_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getNomRangeBits(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getNomRangeBits.html#CSJ2K_j2k_image_ImgDataAdapter_getNomRangeBits_System_Int32_">getNomRangeBits(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_getNumTiles" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getNumTiles">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getNumTiles.html#CSJ2K_j2k_image_ImgDataAdapter_getNumTiles">getNumTiles()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the total number of tiles in the 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_j2k_image_ImgDataAdapter_getNumTiles_CSJ2K_j2k_image_Coord_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getNumTiles(CSJ2K.j2k.image.Coord)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getNumTiles.html#CSJ2K_j2k_image_ImgDataAdapter_getNumTiles_CSJ2K_j2k_image_Coord_">getNumTiles(Coord)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of tiles in the horizontal and vertical directions.</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_j2k_image_ImgDataAdapter_getTile_CSJ2K_j2k_image_Coord_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getTile(CSJ2K.j2k.image.Coord)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getTile.html#CSJ2K_j2k_image_ImgDataAdapter_getTile_CSJ2K_j2k_image_Coord_">getTile(Coord)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the indexes of the current tile. These are the horizontal and
vertical indexes of the current tile.</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_j2k_image_ImgDataAdapter_getTileCompHeight_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getTileCompHeight(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getTileCompHeight.html#CSJ2K_j2k_image_ImgDataAdapter_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>
<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_j2k_image_ImgDataAdapter_getTileCompWidth_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.getTileCompWidth(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.getTileCompWidth.html#CSJ2K_j2k_image_ImgDataAdapter_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
tile.</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_j2k_image_ImgDataAdapter_nextTile" data-uid="CSJ2K.j2k.image.ImgDataAdapter.nextTile">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.nextTile.html#CSJ2K_j2k_image_ImgDataAdapter_nextTile">nextTile()</a>
        </td>
        <td class="markdown level1 summary"><p>Advances to the next tile, in standard scan-line order (by rows then
columns). An NoNextElementException is thrown if the current tile is
the last one (i.e. there is no next tile).</p>
<pre><code>       &lt;p&gt;This default implementation just advances to the next tile in the
       source.&lt;/p&gt;
</code></pre>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_image_ImgDataAdapter_setTile_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.image.ImgDataAdapter.setTile(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.image.ImgDataAdapter.setTile.html#CSJ2K_j2k_image_ImgDataAdapter_setTile_System_Int32_System_Int32_">setTile(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Changes the current tile, given the new indexes. An
IllegalArgumentException is thrown if the indexes do not correspond to
a valid tile.</p>
<pre><code>       &lt;p&gt;This default implementation just changes the tile in the source.&lt;/p&gt;
</code></pre>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="CSJ2K.j2k.image.ImgData.html">ImgData</a></div>
  </div>

</div>
