Top Fields Constructors Methods
org.eclipse.swt.internal.image

public final Class OS2BMPFileFormat

extends FileFormat
Class Inheritance
Imports
org.eclipse.swt.*, org.eclipse.swt.graphics.*, java.io.*

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv static final int
pack-priv static final int
pack-priv int
pack-priv int
Inherited from org.eclipse.swt.internal.image.FileFormat:
compressionFORMAT_PACKAGEFORMAT_SUFFIXFORMATSinputStreamloaderoutputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
flipScanLines(byte[] data, int stride, int height)

pack-priv boolean
isFileFormat(LEDataInputStream stream)

Implements abstract org.eclipse.swt.internal.image.FileFormat.isFileFormat.

Return whether or not the specified input stream represents a supported file format.
pack-priv byte[]
loadData(byte[] infoHeader)

pack-priv byte[]
loadData(byte[] infoHeader, int stride)

pack-priv int[]
pack-priv ImageData[]
pack-priv PaletteData
loadPalette(byte[] infoHeader)

pack-priv PaletteData
paletteFromBytes(byte[] bytes, int numColors)

pack-priv static byte[]
paletteToBytes(PaletteData pal)

Answer a byte array containing the BMP representation of the given device independent palette.

pack-priv int
unloadData(ImageData image, OutputStream out)

Unload the given image's data into the given byte stream.

pack-priv void
unloadIntoByteStream(ImageLoader loader)

Implements abstract org.eclipse.swt.internal.image.FileFormat.unloadIntoByteStream.

Unload a DeviceIndependentImage using Windows .BMP format into the given byte stream.
Inherited from org.eclipse.swt.internal.image.FileFormat:
getFileFormatloadloadFromStreamsaveunloadIntoStream

Field Detail

bitCountback to summary
pack-priv int bitCount
BMPFileHeaderSizeback to summary
pack-priv static final int BMPFileHeaderSize
BMPHeaderFixedSizeback to summary
pack-priv static final int BMPHeaderFixedSize
heightback to summary
pack-priv int height
widthback to summary
pack-priv int width

Constructor Detail

OS2BMPFileFormatback to summary
public OS2BMPFileFormat()

Method Detail

flipScanLinesback to summary
pack-priv void flipScanLines(byte[] data, int stride, int height)
isFileFormatback to summary
pack-priv boolean isFileFormat(LEDataInputStream stream)

Implements abstract org.eclipse.swt.internal.image.FileFormat.isFileFormat.

Doc from org.eclipse.swt.internal.image.FileFormat.isFileFormat.

Return whether or not the specified input stream represents a supported file format.

Annotations
@Override
loadDataback to summary
pack-priv byte[] loadData(byte[] infoHeader)
loadDataback to summary
pack-priv byte[] loadData(byte[] infoHeader, int stride)
loadFileHeaderback to summary
pack-priv int[] loadFileHeader()
loadFromByteStreamback to summary
pack-priv ImageData[] loadFromByteStream()

Implements abstract org.eclipse.swt.internal.image.FileFormat.loadFromByteStream.

Annotations
@Override
loadPaletteback to summary
pack-priv PaletteData loadPalette(byte[] infoHeader)
paletteFromBytesback to summary
pack-priv PaletteData paletteFromBytes(byte[] bytes, int numColors)
paletteToBytesback to summary
pack-priv static byte[] paletteToBytes(PaletteData pal)

Answer a byte array containing the BMP representation of the given device independent palette.

unloadDataback to summary
pack-priv int unloadData(ImageData image, OutputStream out)

Unload the given image's data into the given byte stream. Answer the number of bytes written.

unloadIntoByteStreamback to summary
pack-priv void unloadIntoByteStream(ImageLoader loader)

Implements abstract org.eclipse.swt.internal.image.FileFormat.unloadIntoByteStream.

Unload a DeviceIndependentImage using Windows .BMP format into the given byte stream.

Annotations
@Override