ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.codestream.reader Namespace / HeaderDecoder Class / HeaderDecoder Constructor
The encoded header stream where marker segments are extracted.
The ParameterList object of the decoder
The HeaderInfo holding information found in marker segments

In This Topic
    HeaderDecoder Constructor
    In This Topic
    Creates a HeaderDecoder instance and read in two passes the main header of the codestream. The first and last marker segments shall be respectively SOC and SOT.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal ehs As RandomAccessIO, _
       ByVal pl As ParameterList, _
       ByVal hi As HeaderInfo _
    )
    public HeaderDecoder( 
       RandomAccessIO ehs,
       ParameterList pl,
       HeaderInfo hi
    )

    Parameters

    ehs
    The encoded header stream where marker segments are extracted.
    pl
    The ParameterList object of the decoder
    hi
    The HeaderInfo holding information found in marker segments
    Exceptions
    ExceptionDescription
    If an I/O error occurs while reading from the encoded header stream.
    If the end of the encoded header stream is reached before getting all the data.
    If invalid data is found in the codestream main header.
    See Also