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 intBMPFileHeaderSize(package private) static intBMPHeaderFixedSize(package private) intimportantColors-
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) voiddecompressData(byte[] src, byte[] dest, int stride, int cmp)(package private) intdecompressRLE4Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)(package private) intdecompressRLE8Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)(package private) voidflipScanLines(byte[] data, int stride, int height)(package private) booleanisFileFormat(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.PaletteDataloadPalette(byte[] infoHeader)(package private) IconExe.PaletteDatapaletteFromBytes(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.FileFormatReturn whether or not the specified input stream represents a supported file format.- Specified by:
isFileFormatin classIconExe.FileFormat
-
loadData
byte[] loadData(byte[] infoHeader)
-
loadData
byte[] loadData(byte[] infoHeader, int stride)
-
loadFileHeader
int[] loadFileHeader()
-
loadFromByteStream
IconExe.ImageData[] loadFromByteStream()
- Specified by:
loadFromByteStreamin 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)
-
-