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

public final Class WinBMPFileFormat

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

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv int
pack-priv Point
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 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.

pack-priv int
compressRLE4Data(byte[] src, int srcOffset, int numBytes, byte[] dest, boolean last)

pack-priv int
compressRLE8Data(byte[] src, int srcOffset, int numBytes, byte[] dest, boolean last)

pack-priv void
convertPixelsToBGR(ImageData image, byte[] dest)

pack-priv void
decompressData(byte[] src, byte[] dest, int stride, int cmp)

pack-priv int
decompressRLE4Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)

pack-priv int
decompressRLE8Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)

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 boolean
isPaletteBMP(PaletteData pal, int depth)

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, byte[] data, OutputStream out, int comp)

Unload the given image's data into the given byte stream using the given compression strategy.

pack-priv int
unloadDataNoCompression(ImageData image, byte[] data, OutputStream out)

Prepare the given image's data for unloading into a byte stream using no compression strategy.

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

BI_BITFIELDSback to summary
pack-priv static final int BI_BITFIELDS
BI_RGBback to summary
pack-priv static final int BI_RGB
BI_RLE4back to summary
pack-priv static final int BI_RLE4
BI_RLE8back to summary
pack-priv static final int BI_RLE8
BMPFileHeaderSizeback to summary
pack-priv static final int BMPFileHeaderSize
BMPHeaderFixedSizeback to summary
pack-priv static final int BMPHeaderFixedSize
importantColorsback to summary
pack-priv int importantColors
pelsPerMeterback to summary
pack-priv Point pelsPerMeter

Constructor Detail

WinBMPFileFormatback to summary
public WinBMPFileFormat()

Method Detail

compressback to summary
pack-priv 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. If last is true, this indicates the last line of the image. Answer the size of the compressed data.

compressRLE4Databack to summary
pack-priv int compressRLE4Data(byte[] src, int srcOffset, int numBytes, byte[] dest, boolean last)
compressRLE8Databack to summary
pack-priv int compressRLE8Data(byte[] src, int srcOffset, int numBytes, byte[] dest, boolean last)
convertPixelsToBGRback to summary
pack-priv void convertPixelsToBGR(ImageData image, byte[] dest)
decompressDataback to summary
pack-priv void decompressData(byte[] src, byte[] dest, int stride, int cmp)
decompressRLE4Databack to summary
pack-priv int decompressRLE4Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)
decompressRLE8Databack to summary
pack-priv int decompressRLE8Data(byte[] src, int numBytes, int stride, byte[] dest, int destSize)
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
isPaletteBMPback to summary
pack-priv boolean isPaletteBMP(PaletteData pal, int depth)
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, byte[] data, OutputStream out, int comp)

Unload the given image's data into the given byte stream using the given compression strategy. Answer the number of bytes written. Method modified to use the passed data if it is not null.

unloadDataNoCompressionback to summary
pack-priv int unloadDataNoCompression(ImageData image, byte[] data, OutputStream out)

Prepare the given image's data for unloading into a byte stream using no compression strategy. Answer the number of bytes written. Method modified to use the passed data if it is not null.

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