# CSJ2K.j2k.entropy.encoder.EBCOTRateAllocator.writeLyResCompPos

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_entropy_encoder_EBCOTRateAllocator_writeLyResCompPos_" data-uid="CSJ2K.j2k.entropy.encoder.EBCOTRateAllocator.writeLyResCompPos*">writeLyResCompPos Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_entropy_encoder_EBCOTRateAllocator_writeLyResCompPos_" data-uid="CSJ2K.j2k.entropy.encoder.EBCOTRateAllocator.writeLyResCompPos*"></a>
<h4 id="CSJ2K_j2k_entropy_encoder_EBCOTRateAllocator_writeLyResCompPos_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_____System_Int32_" data-uid="CSJ2K.j2k.entropy.encoder.EBCOTRateAllocator.writeLyResCompPos(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32[][],System.Int32)">writeLyResCompPos(int, int, int, int, int, int[][], int)</h4>
<div class="markdown level1 summary"><p>Write a piece of bit stream according to the
LY_RES_COMP_POS_PROG progression mode and between given bounds</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void writeLyResCompPos(int t, int rs, int re, int cs, int ce, int[][] lys, int lye)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub writeLyResCompPos(t As Integer, rs As Integer, re As Integer, cs As Integer, ce As Integer, lys As Integer()(), lye 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">t</span></td>
      <td><p>Tile index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rs</span></td>
      <td><p>First resolution level index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">re</span></td>
      <td><p>Last resolution level index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">cs</span></td>
      <td><p>First component index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">ce</span></td>
      <td><p>Last component index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[][]</td>
      <td><span class="parametername">lys</span></td>
      <td><p>First layer index for each component and resolution.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">lye</span></td>
      <td><p>Index of the last layer.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
