C# Class CSJ2K.j2k.fileformat.writer.FileFormatWriter

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
Show file Open project: cureos/csj2k Class Usage Examples

Public Methods

Method Description
FileFormatWriter ( Stream stream, int height, int width, int nc, int bpc, int clength ) : System

The constructor of the FileFormatWriter. It receives all the information necessary about a codestream to generate a legal JP2 file

writeBitsPerComponentBox ( ) : void

This method writes the Bits Per Component box

writeColourSpecificationBox ( ) : void

This method writes the Colour Specification box

writeContiguousCodeStreamBox ( byte cs ) : void

This method writes the Contiguous codestream box

writeFileFormat ( ) : int

This method reads the codestream and writes the file format wrapper and the codestream to the same file

writeFileTypeBox ( ) : void

This method writes the File Type box

writeImageHeaderBox ( ) : void

This method writes the Image Header box

writeJP2HeaderBox ( ) : void

This method writes the JP2Header box

Method Details

FileFormatWriter() public method

The constructor of the FileFormatWriter. It receives all the information necessary about a codestream to generate a legal JP2 file
public FileFormatWriter ( Stream stream, int height, int width, int nc, int bpc, int clength ) : System
stream Stream The stream that is to be made a JP2 file /// ///
height int The height of the image /// ///
width int The width of the image /// ///
nc int The number of components /// ///
bpc int The number of bits per component /// ///
clength int Length of codestream /// ///
return System

writeBitsPerComponentBox() public method

This method writes the Bits Per Component box
If an I/O error ocurred. /// ///
public writeBitsPerComponentBox ( ) : void
return void

writeColourSpecificationBox() public method

This method writes the Colour Specification box
If an I/O error ocurred. /// ///
public writeColourSpecificationBox ( ) : void
return void

writeContiguousCodeStreamBox() public method

This method writes the Contiguous codestream box
If an I/O error ocurred. /// ///
public writeContiguousCodeStreamBox ( byte cs ) : void
cs byte The contiguous codestream /// ///
return void

writeFileFormat() public method

This method reads the codestream and writes the file format wrapper and the codestream to the same file
If an I/O error ocurred. /// ///
public writeFileFormat ( ) : int
return int

writeFileTypeBox() public method

This method writes the File Type box
If an I/O error ocurred. /// ///
public writeFileTypeBox ( ) : void
return void

writeImageHeaderBox() public method

This method writes the Image Header box
If an I/O error ocurred. /// ///
public writeImageHeaderBox ( ) : void
return void

writeJP2HeaderBox() public method

This method writes the JP2Header box
If an I/O error ocurred. /// ///
public writeJP2HeaderBox ( ) : void
return void