# CSJ2K.j2k.image.CompTransfSpec.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_image_CompTransfSpec__ctor_" data-uid="CSJ2K.j2k.image.CompTransfSpec.#ctor*">CompTransfSpec Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_image_CompTransfSpec__ctor_" data-uid="CSJ2K.j2k.image.CompTransfSpec.#ctor*"></a>
<h4 id="CSJ2K_j2k_image_CompTransfSpec__ctor_System_Int32_System_Int32_System_Byte_" data-uid="CSJ2K.j2k.image.CompTransfSpec.#ctor(System.Int32,System.Int32,System.Byte)">CompTransfSpec(int, int, byte)</h4>
<div class="markdown level1 summary"><p>Constructs an empty 'CompTransfSpec' with the specified number of tiles
and components. This constructor is called by the decoder. Note: The
number of component is here for symmetry purpose. It is useless since
only tile specifications are meaningful.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CompTransfSpec(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>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>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>
