# CSJ2K.j2k.IntegerSpec.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_IntegerSpec__ctor_" data-uid="CSJ2K.j2k.IntegerSpec.#ctor*">IntegerSpec Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_IntegerSpec__ctor_" data-uid="CSJ2K.j2k.IntegerSpec.#ctor*"></a>
<h4 id="CSJ2K_j2k_IntegerSpec__ctor_System_Int32_System_Int32_System_Byte_" data-uid="CSJ2K.j2k.IntegerSpec.#ctor(System.Int32,System.Int32,System.Byte)">IntegerSpec(int, int, byte)</h4>
<div class="markdown level1 summary"><p>Constructs a new 'IntegerSpec' for the specified number of tiles and
components and with allowed type of specifications. This constructor is
normally called at decoder side.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IntegerSpec(int nt, int nc, byte type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(nt As Integer, nc As Integer, type As Byte)</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">nt</span></td>
      <td><p>The number of tiles</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nc</span></td>
      <td><p>The number of components</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of allowed specifications</p>
</td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_j2k_IntegerSpec__ctor_" data-uid="CSJ2K.j2k.IntegerSpec.#ctor*"></a>
<h4 id="CSJ2K_j2k_IntegerSpec__ctor_System_Int32_System_Int32_System_Byte_CSJ2K_j2k_util_ParameterList_System_String_" data-uid="CSJ2K.j2k.IntegerSpec.#ctor(System.Int32,System.Int32,System.Byte,CSJ2K.j2k.util.ParameterList,System.String)">IntegerSpec(int, int, byte, ParameterList, string)</h4>
<div class="markdown level1 summary"><p>Constructs a new 'IntegerSpec' for the specified number of tiles and
components, the allowed specifications type and the ParameterList
instance. This constructor is normally called at encoder side and parse
arguments of specified option.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IntegerSpec(int nt, int nc, byte type, ParameterList pl, string optName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(nt As Integer, nc As Integer, type As Byte, pl As ParameterList, optName As String)</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">nt</span></td>
      <td><p>The number of tiles</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nc</span></td>
      <td><p>The number of components</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The allowed specifications type</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.util.ParameterList.html">ParameterList</a></td>
      <td><span class="parametername">pl</span></td>
      <td><p>The ParameterList instance</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">optName</span></td>
      <td><p>The name of the option to process</p>
</td>
    </tr>
  </tbody>
</table>
</div>
