# CSJ2K.j2k.codestream.writer.HeaderEncoder.writeTo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_writer_HeaderEncoder_writeTo_" data-uid="CSJ2K.j2k.codestream.writer.HeaderEncoder.writeTo*">writeTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_writer_HeaderEncoder_writeTo_" data-uid="CSJ2K.j2k.codestream.writer.HeaderEncoder.writeTo*"></a>
<h4 id="CSJ2K_j2k_codestream_writer_HeaderEncoder_writeTo_CSJ2K_j2k_io_BinaryDataOutput_" data-uid="CSJ2K.j2k.codestream.writer.HeaderEncoder.writeTo(CSJ2K.j2k.io.BinaryDataOutput)">writeTo(BinaryDataOutput)</h4>
<div class="markdown level1 summary"><p>Writes the header to the specified BinaryDataOutput.</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 writeTo(BinaryDataOutput out_Renamed)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub writeTo(out_Renamed As BinaryDataOutput)</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.io.BinaryDataOutput.html">BinaryDataOutput</a></td>
      <td><span class="parametername">out_Renamed</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_j2k_codestream_writer_HeaderEncoder_writeTo_" data-uid="CSJ2K.j2k.codestream.writer.HeaderEncoder.writeTo*"></a>
<h4 id="CSJ2K_j2k_codestream_writer_HeaderEncoder_writeTo_System_IO_Stream_" data-uid="CSJ2K.j2k.codestream.writer.HeaderEncoder.writeTo(System.IO.Stream)">writeTo(Stream)</h4>
<div class="markdown level1 summary"><p>Writes the header to the specified OutputStream.</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 writeTo(Stream out_Renamed)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub writeTo(out_Renamed As Stream)</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.io.stream">Stream</a></td>
      <td><span class="parametername">out_Renamed</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
