ComponentOne PdfViewer for WPF and Silverlight
C1.WPF.PdfViewer.4.6.2 Assembly / CSJ2K.j2k.codestream.writer Namespace / FileCodestreamWriter Class / FileCodestreamWriter Constructor / FileCodestreamWriter Constructor(Stream,Int32)
The output stream where to write the bit stream.
The maximum number of bytes that can be written to the bit stream.

In This Topic
    FileCodestreamWriter Constructor(Stream,Int32)
    In This Topic
    Uses the output stream 'os' for writing the bit stream, using the 'he' header encoder. The magic number is written to the bit stream. Normally, the header encoder must be empty (i.e. no data has been written to it yet). No BufferedOutputStream is used on top of the output stream 'os'.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal os As Stream, _
       ByVal mb As Integer _
    )
    public FileCodestreamWriter( 
       Stream os,
       int mb
    )

    Parameters

    os
    The output stream where to write the bit stream.
    mb
    The maximum number of bytes that can be written to the bit stream.
    Exceptions
    ExceptionDescription
    If an error occurs while writing the magic number to the 'os' output stream.
    See Also