# CSJ2K.j2k.quantization.quantizer.Quantizer.createInstance

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_quantization_quantizer_Quantizer_createInstance_" data-uid="CSJ2K.j2k.quantization.quantizer.Quantizer.createInstance*">createInstance Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_quantization_quantizer_Quantizer_createInstance_" data-uid="CSJ2K.j2k.quantization.quantizer.Quantizer.createInstance*"></a>
<h4 id="CSJ2K_j2k_quantization_quantizer_Quantizer_createInstance_CSJ2K_j2k_wavelet_analysis_CBlkWTDataSrc_CSJ2K_j2k_encoder_EncoderSpecs_" data-uid="CSJ2K.j2k.quantization.quantizer.Quantizer.createInstance(CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc,CSJ2K.j2k.encoder.EncoderSpecs)">createInstance(CBlkWTDataSrc, EncoderSpecs)</h4>
<div class="markdown level1 summary"><p>Creates a Quantizer object for the appropriate type of quantization
specified in the options in the parameter list 'pl', and having 'src'
as the source of data to be quantized. The 'rev' flag indicates if the
quantization should be reversible.</p>
<pre><code>       NOTE: At the moment only sources of wavelet data that implement the
       'CBlkWTDataSrc' interface are supported.
</code></pre>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Quantizer createInstance(CBlkWTDataSrc src, EncoderSpecs encSpec)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function createInstance(src As CBlkWTDataSrc, encSpec As EncoderSpecs) As Quantizer</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="CSJ2K.j2k.wavelet.analysis.CBlkWTDataSrc.html">CBlkWTDataSrc</a></td>
      <td><span class="parametername">src</span></td>
      <td><p>The source of data to be quantized</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.encoder.EncoderSpecs.html">EncoderSpecs</a></td>
      <td><span class="parametername">encSpec</span></td>
      <td><p>Encoder specifications</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.quantization.quantizer.Quantizer.html">Quantizer</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
