# CSJ2K.j2k.codestream.writer.TagTreeEncoder.Values

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_writer_TagTreeEncoder_Values_" data-uid="CSJ2K.j2k.codestream.writer.TagTreeEncoder.Values*">Values Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_writer_TagTreeEncoder_Values_" data-uid="CSJ2K.j2k.codestream.writer.TagTreeEncoder.Values*"></a>
<h4 id="CSJ2K_j2k_codestream_writer_TagTreeEncoder_Values" data-uid="CSJ2K.j2k.codestream.writer.TagTreeEncoder.Values">Values</h4>
<div class="markdown level1 summary"><p>Sets the values of the leafs to the new set of values and updates the
tag tree accordingly. No leaf can change its value if either the new or
old value is smaller than largest threshold which has yet been supplied
to 'encode()'. However such a leaf can keep its old value (i.e. new and
old value must be identical.</p>
<pre><code>       &lt;p&gt;This method is more efficient than the setValue() method if a large
       proportion of the leafs change their value. Note that for leafs which
       don't have their value defined yet the value should be
       Integer.MAX_VALUE (which is the default initialization value).&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 virtual int[] Values { set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable WriteOnly Property Values As Integer()</code></pre>
</div>
<h5 id="CSJ2K_j2k_codestream_writer_TagTreeEncoder_Values_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="CSJ2K.j2k.codestream.writer.TagTreeEncoder.setValue.html#CSJ2K_j2k_codestream_writer_TagTreeEncoder_setValue_System_Int32_System_Int32_System_Int32_">setValue</a>(<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>)</div>
</div>
</div>
