# CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getImgWidth

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_getImgWidth_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getImgWidth*">getImgWidth Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_getImgWidth_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getImgWidth*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_getImgWidth_System_Int32_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getImgWidth(System.Int32)">getImgWidth(int)</h4>
<div class="markdown level1 summary"><p>Returns the overall width of the image in pixels, for the given (image)
resolution level. This is the image's width without accounting for any
component subsampling or tiling.</p>
<pre><code>       &lt;p&gt;Note: Image resolution level indexes may differ from tile-component
       resolution index. They are indeed indexed starting from the lowest
       number of decomposition levels of each component of each tile.&lt;/p&gt;&lt;p&gt;Example: 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 image 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 getImgWidth(int rl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function getImgWidth(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 image 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 total image's width in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.wavelet.synthesis.MultiResImgData.getImgWidth.html#CSJ2K_j2k_wavelet_synthesis_MultiResImgData_getImgWidth_System_Int32_">MultiResImgData.getImgWidth(int)</a></div>
</div>
