| java.lang.Object jj2000.j2k.fileformat.writer.FileFormatWriter
FileFormatWriter | public FileFormatWriter(File file, ImageOutputStream stream, int height, int width, int nc, int[] bpc, int clength, ColorModel colorModel, SampleModel sampleModel, J2KMetadata metadata)(Code) | | The constructor of the FileFormatWriter. It receives all the
information necessary about a codestream to generate a legal JP2 file
Parameters: filename - The name of the file that is to be made a JP2 file Parameters: height - The height of the image Parameters: width - The width of the image Parameters: nc - The number of components Parameters: bpc - The number of bits per component Parameters: clength - Length of codestream Parameters: colorModel - The color model of the image to be compressed. |
writeContiguousCodeStreamBox | public void writeContiguousCodeStreamBox() throws IOException(Code) | | This method writes the Contiguous codestream box
Parameters: cs - The contiguous codestream exception: java.io.IOException - If an I/O error ocurred. |
writeFileFormat | public int writeFileFormat() throws IOException(Code) | | This method reads the codestream and writes the file format wrapper and
the codestream to the same file
The number of bytes increases because of the file format exception: java.io.IOException - If an I/O error ocurred. |
|
|