public class BitFile extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
bitsLeft_ |
(package private) boolean |
blocks_
note this also indicates gif format BITFile.
|
(package private) byte[] |
buffer_ |
(package private) int |
index_ |
(package private) ImageOutputStream |
output_ |
Constructor and Description |
---|
BitFile(ImageOutputStream output,
boolean blocks) |
ImageOutputStream output_
byte[] buffer_
int index_
int bitsLeft_
boolean blocks_
public BitFile(ImageOutputStream output, boolean blocks)
output
- destination for output datablocks
- GIF LZW requires block counts for output datapublic void flush() throws IOException
IOException
public void writeBits(int bits, int numbits) throws IOException
IOException
Copyright © 2015 Open Microscopy Environment