# CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getTileWidth

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_getTileWidth_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getTileWidth*">getTileWidth Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_getTileWidth_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getTileWidth*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_getTileWidth_System_Int32_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getTileWidth(System.Int32)">getTileWidth(int)</h4>
<div class="markdown level1 summary"><p>Returns the overall width of the current tile in pixels for the given
(tile) resolution level. This is the tile's width without accounting
for any component subsampling.</p>
<pre><code>       &lt;p&gt;Note: Tile resolution level indexes may be different from
       tile-component resolution index. They are indeed indexed starting from
       the lowest number of decomposition levels of each component of the
       tile.&lt;/p&gt;&lt;p&gt;For an image (1 tile) with 2 components (component 0 having 2
       decomposition levels and component 1 having 3 decomposition levels),
       the first (tile-)component has 3 resolution levels and the second one
       has 4 resolution levels, whereas the tile has only 3 resolution levels
       available.&lt;/p&gt;
</code></pre>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual int getTileWidth(int rl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function getTileWidth(rl As Integer) As Integer</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rl</span></td>
      <td><p>The (tile) resolution level.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The current tile's width in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.wavelet.synthesis.MultiResImgData.getTileWidth.html#CSJ2K_j2k_wavelet_synthesis_MultiResImgData_getTileWidth_System_Int32_">MultiResImgData.getTileWidth(int)</a></div>
</div>
