# CSJ2K.j2k.ModuleSpec.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_ModuleSpec__ctor_" data-uid="CSJ2K.j2k.ModuleSpec.#ctor*">ModuleSpec Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_ModuleSpec__ctor_" data-uid="CSJ2K.j2k.ModuleSpec.#ctor*"></a>
<h4 id="CSJ2K_j2k_ModuleSpec__ctor_System_Int32_System_Int32_System_Byte_" data-uid="CSJ2K.j2k.ModuleSpec.#ctor(System.Int32,System.Int32,System.Byte)">ModuleSpec(int, int, byte)</h4>
<div class="markdown level1 summary"><p>Constructs a 'ModuleSpec' object, initializing all the components and
tiles to the 'SPEC_DEF' spec val type, for the specified number of
components and tiles.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ModuleSpec(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 the specification module i.e. tile specific,
component specific or both.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
