public final class WinBMPFileFormat extends FileFormat
Modifier and Type | Field and Description |
---|---|
(package private) static int |
BMPFileHeaderSize |
(package private) static int |
BMPHeaderFixedSize |
(package private) int |
importantColors |
(package private) Point |
pelsPerMeter |
compression, FORMAT_PACKAGE, FORMAT_SUFFIX, FORMATS, inputStream, loader, outputStream
Constructor and Description |
---|
WinBMPFileFormat() |
Modifier and Type | Method and Description |
---|---|
(package private) int |
compress(int comp,
byte[] src,
int srcOffset,
int numBytes,
byte[] dest,
boolean last)
Compress numBytes bytes of image data from src, storing in dest
(starting at 0), using the technique specified by comp.
|
(package private) int |
compressRLE4Data(byte[] src,
int srcOffset,
int numBytes,
byte[] dest,
boolean last) |
(package private) int |
compressRLE8Data(byte[] src,
int srcOffset,
int numBytes,
byte[] dest,
boolean last) |
(package private) void |
convertPixelsToBGR(ImageData image,
byte[] dest) |
(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(LEDataInputStream stream)
Return whether or not the specified input stream
represents a supported file format.
|
(package private) boolean |
isPaletteBMP(PaletteData pal,
int depth) |
(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,
byte[] data,
java.io.OutputStream out,
int comp)
Unload the given image's data into the given byte stream
using the given compression strategy.
|
(package private) int |
unloadDataNoCompression(ImageData image,
byte[] data,
java.io.OutputStream out)
Prepare the given image's data for unloading into a byte stream
using no compression strategy.
|
(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 importantColors
Point pelsPerMeter
int compress(int comp, byte[] src, int srcOffset, int numBytes, byte[] dest, boolean last)
int compressRLE4Data(byte[] src, int srcOffset, int numBytes, byte[] dest, boolean last)
int compressRLE8Data(byte[] src, int srcOffset, int numBytes, byte[] dest, boolean last)
void convertPixelsToBGR(ImageData image, byte[] dest)
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(LEDataInputStream stream)
FileFormat
isFileFormat
in class FileFormat
boolean isPaletteBMP(PaletteData pal, int depth)
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, byte[] data, java.io.OutputStream out, int comp)
int unloadDataNoCompression(ImageData image, byte[] data, java.io.OutputStream out)
void unloadIntoByteStream(ImageLoader loader)
unloadIntoByteStream
in class FileFormat
void flipScanLines(byte[] data, int stride, int height)