# CSJ2K.j2k.fileformat.writer.FileFormatWriter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_fileformat_writer_FileFormatWriter" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter" class="text-break">FileFormatWriter Class
</h1>
  <div class="markdown level0 summary"><p>This class writes the file format wrapper that may or may not exist around
a valid JPEG 2000 codestream. This class writes the simple possible legal
fileformat</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">FileFormatWriter</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.fileformat.writer.html">CSJ2K.j2k.fileformat.writer</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FileFormatWriter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FileFormatWriter</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter__ctor_System_String_System_Int32_System_Int32_System_Int32_System_Int32___System_Int32_" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.#ctor(System.String,System.Int32,System.Int32,System.Int32,System.Int32[],System.Int32)">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.-ctor.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter__ctor_System_String_System_Int32_System_Int32_System_Int32_System_Int32___System_Int32_">FileFormatWriter(string, int, int, int, int[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>The constructor of the FileFormatWriter. It receives all the
information necessary about a codestream to generate a legal JP2 file</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeBitsPerComponentBox" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeBitsPerComponentBox">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeBitsPerComponentBox.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeBitsPerComponentBox">writeBitsPerComponentBox()</a>
        </td>
        <td class="markdown level1 summary"><p>This method writes the Bits Per Component box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeColourSpecificationBox" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeColourSpecificationBox">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeColourSpecificationBox.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeColourSpecificationBox">writeColourSpecificationBox()</a>
        </td>
        <td class="markdown level1 summary"><p>This method writes the Colour Specification box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeContiguousCodeStreamBox_System_Byte___" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeContiguousCodeStreamBox(System.Byte[])">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeContiguousCodeStreamBox.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeContiguousCodeStreamBox_System_Byte___">writeContiguousCodeStreamBox(byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>This method writes the Contiguous codestream box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeFileFormat" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeFileFormat">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeFileFormat.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeFileFormat">writeFileFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>This method reads the codestream and writes the file format wrapper and
the codestream to the same file</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeFileTypeBox" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeFileTypeBox">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeFileTypeBox.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeFileTypeBox">writeFileTypeBox()</a>
        </td>
        <td class="markdown level1 summary"><p>This method writes the File Type box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeImageHeaderBox" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeImageHeaderBox">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeImageHeaderBox.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeImageHeaderBox">writeImageHeaderBox()</a>
        </td>
        <td class="markdown level1 summary"><p>This method writes the Image Header box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeJP2HeaderBox" data-uid="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeJP2HeaderBox">
          <a class="xref" href="CSJ2K.j2k.fileformat.writer.FileFormatWriter.writeJP2HeaderBox.html#CSJ2K_j2k_fileformat_writer_FileFormatWriter_writeJP2HeaderBox">writeJP2HeaderBox()</a>
        </td>
        <td class="markdown level1 summary"><p>This method writes the JP2Header box</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
