# CSJ2K.j2k.image.forwcomptransf.ForwCompTransfSpec.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_image_forwcomptransf_ForwCompTransfSpec__ctor_" data-uid="CSJ2K.j2k.image.forwcomptransf.ForwCompTransfSpec.#ctor*">ForwCompTransfSpec Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_image_forwcomptransf_ForwCompTransfSpec__ctor_" data-uid="CSJ2K.j2k.image.forwcomptransf.ForwCompTransfSpec.#ctor*"></a>
<h4 id="CSJ2K_j2k_image_forwcomptransf_ForwCompTransfSpec__ctor_System_Int32_System_Int32_System_Byte_CSJ2K_j2k_wavelet_analysis_AnWTFilterSpec_CSJ2K_j2k_util_ParameterList_" data-uid="CSJ2K.j2k.image.forwcomptransf.ForwCompTransfSpec.#ctor(System.Int32,System.Int32,System.Byte,CSJ2K.j2k.wavelet.analysis.AnWTFilterSpec,CSJ2K.j2k.util.ParameterList)">ForwCompTransfSpec(int, int, byte, AnWTFilterSpec, ParameterList)</h4>
<div class="markdown level1 summary"><p>Constructs a new 'ForwCompTransfSpec' for the specified number of
components and tiles, the wavelet filters type and the parameter of the
option 'Mct'. This constructor is called by the encoder. It also checks
that the arguments belong to the recognized arguments list.</p>
<pre><code>       &lt;p&gt;This constructor chose the component transformation type depending
       on the wavelet filters : RCT with w5x3 filter and ICT with w9x7
       filter. Note: All filters must use the same data type.&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 ForwCompTransfSpec(int nt, int nc, byte type, AnWTFilterSpec wfs, ParameterList pl)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(nt As Integer, nc As Integer, type As Byte, wfs As AnWTFilterSpec, pl As ParameterList)</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>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.wavelet.analysis.AnWTFilterSpec.html">AnWTFilterSpec</a></td>
      <td><span class="parametername">wfs</span></td>
      <td><p>The wavelet filter specifications</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</p>
</td>
    </tr>
  </tbody>
</table>
</div>
