static class IconExe.WinBMPFileFormat extends IconExe.FileFormat
Modifier and Type | Field and Description |
---|---|
(package private) static int |
BMPFileHeaderSize |
(package private) static int |
BMPHeaderFixedSize |
(package private) int |
importantColors |
compression, inputStream, loader
Constructor and Description |
---|
WinBMPFileFormat() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
decompressData(byte[] src,
byte[] dest,
int stride,
int cmp) |
(package private) int |
decompressRLE4Data(byte[] src,
int numBytes,
int stride,
byte[] dest,
int destSize) |
(package private) int |
decompressRLE8Data(byte[] src,
int numBytes,
int stride,
byte[] dest,
int destSize) |
(package private) void |
flipScanLines(byte[] data,
int stride,
int height) |
(package private) boolean |
isFileFormat(IconExe.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) IconExe.ImageData[] |
loadFromByteStream() |
(package private) IconExe.PaletteData |
loadPalette(byte[] infoHeader) |
(package private) IconExe.PaletteData |
paletteFromBytes(byte[] bytes,
int numColors) |
(package private) static byte[] |
paletteToBytes(IconExe.PaletteData pal)
Answer a byte array containing the BMP representation of
the given device independent palette.
|
bitInvertData, load, loadFromStream
static final int BMPFileHeaderSize
static final int BMPHeaderFixedSize
int importantColors
void decompressData(byte[] src, byte[] dest, int stride, int cmp)
int decompressRLE4Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)
int decompressRLE8Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)
boolean isFileFormat(IconExe.LEDataInputStream stream)
IconExe.FileFormat
isFileFormat
in class IconExe.FileFormat
byte[] loadData(byte[] infoHeader)
byte[] loadData(byte[] infoHeader, int stride)
int[] loadFileHeader()
IconExe.ImageData[] loadFromByteStream()
loadFromByteStream
in class IconExe.FileFormat
IconExe.PaletteData loadPalette(byte[] infoHeader)
IconExe.PaletteData paletteFromBytes(byte[] bytes, int numColors)
static byte[] paletteToBytes(IconExe.PaletteData pal)
void flipScanLines(byte[] data, int stride, int height)