# CSJ2K.Color.ColorSpace

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_Color_ColorSpace" data-uid="CSJ2K.Color.ColorSpace" class="text-break">ColorSpace Class
</h1>
  <div class="markdown level0 summary"><p>This class analyzes the image to provide colorspace
information for the decoding chain.  It does this by
examining the box structure of the JP2 image.
It also provides access to the parameter list information,
which is stored as a public final field.</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">ColorSpace</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.Color.html">CSJ2K.Color</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Pdf.4.8.dll</h6>
  <h5 id="CSJ2K_Color_ColorSpace_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ColorSpace</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ColorSpace</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_Color_ColorSpace__ctor_CSJ2K_j2k_io_RandomAccessIO_CSJ2K_j2k_codestream_reader_HeaderDecoder_CSJ2K_j2k_util_ParameterList_" data-uid="CSJ2K.Color.ColorSpace.#ctor(CSJ2K.j2k.io.RandomAccessIO,CSJ2K.j2k.codestream.reader.HeaderDecoder,CSJ2K.j2k.util.ParameterList)">
          <a class="xref" href="CSJ2K.Color.ColorSpace.-ctor.html#CSJ2K_Color_ColorSpace__ctor_CSJ2K_j2k_io_RandomAccessIO_CSJ2K_j2k_codestream_reader_HeaderDecoder_CSJ2K_j2k_util_ParameterList_">ColorSpace(RandomAccessIO, HeaderDecoder, ParameterList)</a>
        </td>
        <td class="markdown level1 summary"><p>public constructor which takes in the image, parameterlist and the
image header decoder as args.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_eol" data-uid="CSJ2K.Color.ColorSpace.eol">
          <a class="xref" href="CSJ2K.Color.ColorSpace.eol.html">eol</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_hd" data-uid="CSJ2K.Color.ColorSpace.hd">
          <a class="xref" href="CSJ2K.Color.ColorSpace.hd.html">hd</a>
        </td>
        <td class="markdown level1 summary"><p>Parameter Specs</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_pl" data-uid="CSJ2K.Color.ColorSpace.pl">
          <a class="xref" href="CSJ2K.Color.ColorSpace.pl.html">pl</a>
        </td>
        <td class="markdown level1 summary"><p>Parameter Specs</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_ICCProfile" data-uid="CSJ2K.Color.ColorSpace.ICCProfile">
          <a class="xref" href="CSJ2K.Color.ColorSpace.ICCProfile.html#CSJ2K_Color_ColorSpace_ICCProfile">ICCProfile</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the ICC profile from the images as
a byte array.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_Method" data-uid="CSJ2K.Color.ColorSpace.Method">
          <a class="xref" href="CSJ2K.Color.ColorSpace.Method.html#CSJ2K_Color_ColorSpace_Method">Method</a>
        </td>
        <td class="markdown level1 summary"><p>Return the colorspace method (Profiled, enumerated, or palettized).</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_PaletteBox" data-uid="CSJ2K.Color.ColorSpace.PaletteBox">
          <a class="xref" href="CSJ2K.Color.ColorSpace.PaletteBox.html#CSJ2K_Color_ColorSpace_PaletteBox">PaletteBox</a>
        </td>
        <td class="markdown level1 summary"><p>Return number of channels in the palette.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_PaletteChannels" data-uid="CSJ2K.Color.ColorSpace.PaletteChannels">
          <a class="xref" href="CSJ2K.Color.ColorSpace.PaletteChannels.html#CSJ2K_Color_ColorSpace_PaletteChannels">PaletteChannels</a>
        </td>
        <td class="markdown level1 summary"><p>Return number of channels in the palette.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_Palettized" data-uid="CSJ2K.Color.ColorSpace.Palettized">
          <a class="xref" href="CSJ2K.Color.ColorSpace.Palettized.html#CSJ2K_Color_ColorSpace_Palettized">Palettized</a>
        </td>
        <td class="markdown level1 summary"><p>Is palettized predicate.</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_Color_ColorSpace_ToString" data-uid="CSJ2K.Color.ColorSpace.ToString">
          <a class="xref" href="CSJ2K.Color.ColorSpace.ToString.html#CSJ2K_Color_ColorSpace_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Return a suitable String representation of the class instance.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_debugging" data-uid="CSJ2K.Color.ColorSpace.debugging">
          <a class="xref" href="CSJ2K.Color.ColorSpace.debugging.html#CSJ2K_Color_ColorSpace_debugging">debugging()</a>
        </td>
        <td class="markdown level1 summary"><p>Are profiling diagnostics turned on</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_getBoxes" data-uid="CSJ2K.Color.ColorSpace.getBoxes">
          <a class="xref" href="CSJ2K.Color.ColorSpace.getBoxes.html#CSJ2K_Color_ColorSpace_getBoxes">getBoxes()</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieve the various boxes from the JP2 file.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_getChannelDefinition_System_Int32_" data-uid="CSJ2K.Color.ColorSpace.getChannelDefinition(System.Int32)">
          <a class="xref" href="CSJ2K.Color.ColorSpace.getChannelDefinition.html#CSJ2K_Color_ColorSpace_getChannelDefinition_System_Int32_">getChannelDefinition(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return the channel definition of the input component.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_getColorSpace" data-uid="CSJ2K.Color.ColorSpace.getColorSpace">
          <a class="xref" href="CSJ2K.Color.ColorSpace.getColorSpace.html#CSJ2K_Color_ColorSpace_getColorSpace">getColorSpace()</a>
        </td>
        <td class="markdown level1 summary"><p>Return the colorspace (sYCC, sRGB, sGreyScale).</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_getPaletteChannelBits_System_Int32_" data-uid="CSJ2K.Color.ColorSpace.getPaletteChannelBits(System.Int32)">
          <a class="xref" href="CSJ2K.Color.ColorSpace.getPaletteChannelBits.html#CSJ2K_Color_ColorSpace_getPaletteChannelBits_System_Int32_">getPaletteChannelBits(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return bitdepth of the palette entries.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_getPalettizedSample_System_Int32_System_Int32_" data-uid="CSJ2K.Color.ColorSpace.getPalettizedSample(System.Int32,System.Int32)">
          <a class="xref" href="CSJ2K.Color.ColorSpace.getPalettizedSample.html#CSJ2K_Color_ColorSpace_getPalettizedSample_System_Int32_System_Int32_">getPalettizedSample(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Return a palettized sample</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_indent_System_String_System_String_" data-uid="CSJ2K.Color.ColorSpace.indent(System.String,System.String)">
          <a class="xref" href="CSJ2K.Color.ColorSpace.indent.html#CSJ2K_Color_ColorSpace_indent_System_String_System_String_">indent(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Indent a String that contains newlines.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_indent_System_String_System_Text_StringBuilder_" data-uid="CSJ2K.Color.ColorSpace.indent(System.String,System.Text.StringBuilder)">
          <a class="xref" href="CSJ2K.Color.ColorSpace.indent.html#CSJ2K_Color_ColorSpace_indent_System_String_System_Text_StringBuilder_">indent(string, StringBuilder)</a>
        </td>
        <td class="markdown level1 summary"><p>Indent a String that contains newlines.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_Color_ColorSpace_isOutputSigned_System_Int32_" data-uid="CSJ2K.Color.ColorSpace.isOutputSigned(System.Int32)">
          <a class="xref" href="CSJ2K.Color.ColorSpace.isOutputSigned.html#CSJ2K_Color_ColorSpace_isOutputSigned_System_Int32_">isOutputSigned(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Signed output predicate.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
