Class IconExe.WinBMPFileFormat
- java.lang.Object
-
- org.eclipse.pde.internal.swt.tools.IconExe.FileFormat
-
- org.eclipse.pde.internal.swt.tools.IconExe.WinBMPFileFormat
-
- Enclosing class:
- IconExe
static class IconExe.WinBMPFileFormat extends IconExe.FileFormat
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
BMPFileHeaderSize
(package private) static int
BMPHeaderFixedSize
(package private) int
importantColors
-
Fields inherited from class org.eclipse.pde.internal.swt.tools.IconExe.FileFormat
compression, inputStream, loader
-
-
Constructor Summary
Constructors Constructor Description WinBMPFileFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.eclipse.pde.internal.swt.tools.IconExe.FileFormat
bitInvertData, load, loadFromStream
-
-
-
-
Field Detail
-
BMPFileHeaderSize
static final int BMPFileHeaderSize
- See Also:
- Constant Field Values
-
BMPHeaderFixedSize
static final int BMPHeaderFixedSize
- See Also:
- Constant Field Values
-
importantColors
int importantColors
-
-
Method Detail
-
decompressData
void decompressData(byte[] src, byte[] dest, int stride, int cmp)
-
decompressRLE4Data
int decompressRLE4Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)
-
decompressRLE8Data
int decompressRLE8Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)
-
isFileFormat
boolean isFileFormat(IconExe.LEDataInputStream stream)
Description copied from class:IconExe.FileFormat
Return whether or not the specified input stream represents a supported file format.- Specified by:
isFileFormat
in classIconExe.FileFormat
-
loadData
byte[] loadData(byte[] infoHeader)
-
loadData
byte[] loadData(byte[] infoHeader, int stride)
-
loadFileHeader
int[] loadFileHeader()
-
loadFromByteStream
IconExe.ImageData[] loadFromByteStream()
- Specified by:
loadFromByteStream
in classIconExe.FileFormat
-
loadPalette
IconExe.PaletteData loadPalette(byte[] infoHeader)
-
paletteFromBytes
IconExe.PaletteData paletteFromBytes(byte[] bytes, int numColors)
-
paletteToBytes
static byte[] paletteToBytes(IconExe.PaletteData pal)
Answer a byte array containing the BMP representation of the given device independent palette.
-
flipScanLines
void flipScanLines(byte[] data, int stride, int height)
-
-