# CSJ2K.j2k.image.forwcomptransf.ForwCompTransf.calcMixedBitDepths

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_image_forwcomptransf_ForwCompTransf_calcMixedBitDepths_" data-uid="CSJ2K.j2k.image.forwcomptransf.ForwCompTransf.calcMixedBitDepths*">calcMixedBitDepths Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_image_forwcomptransf_ForwCompTransf_calcMixedBitDepths_" data-uid="CSJ2K.j2k.image.forwcomptransf.ForwCompTransf.calcMixedBitDepths*"></a>
<h4 id="CSJ2K_j2k_image_forwcomptransf_ForwCompTransf_calcMixedBitDepths_System_Int32___System_Int32_System_Int32___" data-uid="CSJ2K.j2k.image.forwcomptransf.ForwCompTransf.calcMixedBitDepths(System.Int32[],System.Int32,System.Int32[])">calcMixedBitDepths(int[], int, int[])</h4>
<div class="markdown level1 summary"><p>Calculates the bitdepths of the transformed components, given the
bitdepth of the un-transformed components and the component
transformation type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static int[] calcMixedBitDepths(int[] ntdepth, int ttype, int[] tdepth)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function calcMixedBitDepths(ntdepth As Integer(), ttype As Integer, tdepth As Integer()) As Integer()</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">ntdepth</span></td>
      <td><p>The bitdepth of each non-transformed components.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">ttype</span></td>
      <td><p>The type ID of the component transformation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">tdepth</span></td>
      <td><p>If not null the results are stored in this array,
otherwise a new array is allocated and returned.</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><p>The bitdepth of each transformed component.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
