Class OS2BMPFileFormat
java.lang.Object
org.eclipse.swt.internal.image.FileFormat
org.eclipse.swt.internal.image.FileFormat.StaticImageFileFormat
org.eclipse.swt.internal.image.OS2BMPFileFormat
-
Nested Class Summary
Nested classes/interfaces inherited from class FileFormat
FileFormat.StaticImageFileFormat -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) static final int(package private) static final int(package private) int(package private) intFields inherited from class FileFormat
compression, DEFAULT_ZOOM, inputStream, loader, outputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidflipScanLines(byte[] data, int stride, int height) (package private) booleanisFileFormat(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[](package private) ImageData[](package private) PaletteDataloadPalette(byte[] infoHeader) (package private) PaletteDatapaletteFromBytes(byte[] bytes, int numColors) (package private) static byte[]Answer a byte array containing the BMP representation of the given device independent palette.(package private) intunloadData(ImageData image, OutputStream out) Unload the given image's data into the given byte stream.(package private) voidunloadIntoByteStream(ImageLoader loader) Unload a DeviceIndependentImage using Windows .BMP format into the given byte stream.Methods inherited from class FileFormat.StaticImageFileFormat
loadFromByteStream, loadFromByteStreamBySizeMethods inherited from class FileFormat
canLoadAtZoom, isDynamicallySizableFormat, load, load, loadFromStream, loadFromStreamBySize, save, unloadIntoStream
-
Field Details
-
BMPFileHeaderSize
static final int BMPFileHeaderSize- See Also:
-
BMPHeaderFixedSize
static final int BMPHeaderFixedSize- See Also:
-
width
int width -
height
int height -
bitCount
int bitCount
-
-
Constructor Details
-
OS2BMPFileFormat
public OS2BMPFileFormat()
-
-
Method Details
-
isFileFormat
Description copied from class:FileFormatReturn whether or not the specified input stream represents a supported file format.- Specified by:
isFileFormatin classFileFormat- Throws:
IOException
-
loadData
byte[] loadData(byte[] infoHeader) -
loadData
byte[] loadData(byte[] infoHeader, int stride) -
loadFileHeader
int[] loadFileHeader() -
loadFromByteStream
ImageData[] loadFromByteStream()- Specified by:
loadFromByteStreamin classFileFormat.StaticImageFileFormat
-
loadPalette
-
paletteFromBytes
-
paletteToBytes
Answer a byte array containing the BMP representation of the given device independent palette. -
unloadData
Unload the given image's data into the given byte stream. Answer the number of bytes written. -
unloadIntoByteStream
Unload a DeviceIndependentImage using Windows .BMP format into the given byte stream.- Specified by:
unloadIntoByteStreamin classFileFormat
-
flipScanLines
void flipScanLines(byte[] data, int stride, int height)
-