# CSJ2K.j2k.codestream.reader.CBlkInfo.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_CBlkInfo__ctor_" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.#ctor*">CBlkInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_CBlkInfo__ctor_" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.#ctor*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_CBlkInfo__ctor_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="CSJ2K.j2k.codestream.reader.CBlkInfo.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">CBlkInfo(int, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Constructs a new instance with specified number of layers and
code-block coordinates. The number corresponds to the maximum piece of
codeword for one code-block.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CBlkInfo(int ulx, int uly, int w, int h, int nl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(ulx As Integer, uly As Integer, w As Integer, h As Integer, nl 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">ulx</span></td>
      <td><p>The uper-left x-coordinate</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">uly</span></td>
      <td><p>The uper-left y-coordinate</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">w</span></td>
      <td><p>Width of the code-block</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">h</span></td>
      <td><p>Height of the code-block</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nl</span></td>
      <td><p>The number of layers</p>
</td>
    </tr>
  </tbody>
</table>
</div>
