public final class OS2BMPFileFormat extends FileFormat
Modifier and Type | Field and Description |
---|---|
(package private) int |
bitCount |
(package private) static int |
BMPFileHeaderSize |
(package private) static int |
BMPHeaderFixedSize |
(package private) int |
height |
(package private) int |
width |
compression, FORMAT_PACKAGE, FORMAT_SUFFIX, FORMATS, inputStream, loader, outputStream
Constructor and Description |
---|
OS2BMPFileFormat() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
flipScanLines(byte[] data,
int stride,
int height) |
(package private) boolean |
isFileFormat(LEDataInputStream stream)
Return whether or not the specified input stream
represents a supported file format.
|
(package private) byte[] |
loadData(byte[] infoHeader) |
(package private) byte[] |
loadData(byte[] infoHeader,
int stride) |
(package private) int[] |
loadFileHeader() |
(package private) ImageData[] |
loadFromByteStream() |
(package private) PaletteData |
loadPalette(byte[] infoHeader) |
(package private) PaletteData |
paletteFromBytes(byte[] bytes,
int numColors) |
(package private) static byte[] |
paletteToBytes(PaletteData pal)
Answer a byte array containing the BMP representation of
the given device independent palette.
|
(package private) int |
unloadData(ImageData image,
java.io.OutputStream out)
Unload the given image's data into the given byte stream.
|
(package private) void |
unloadIntoByteStream(ImageLoader loader)
Unload a DeviceIndependentImage using Windows .BMP format into the given
byte stream.
|
load, loadFromStream, save, unloadIntoStream
static final int BMPFileHeaderSize
static final int BMPHeaderFixedSize
int width
int height
int bitCount
boolean isFileFormat(LEDataInputStream stream)
FileFormat
isFileFormat
in class FileFormat
byte[] loadData(byte[] infoHeader)
byte[] loadData(byte[] infoHeader, int stride)
int[] loadFileHeader()
ImageData[] loadFromByteStream()
loadFromByteStream
in class FileFormat
PaletteData loadPalette(byte[] infoHeader)
PaletteData paletteFromBytes(byte[] bytes, int numColors)
static byte[] paletteToBytes(PaletteData pal)
int unloadData(ImageData image, java.io.OutputStream out)
void unloadIntoByteStream(ImageLoader loader)
unloadIntoByteStream
in class FileFormat
void flipScanLines(byte[] data, int stride, int height)