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

public final Class WinICOFileFormat

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

Field Summary

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 byte[]
bitInvertData(byte[] data, int startIndex, int endIndex)

pack-priv static byte[]
convertPad(byte[] data, int width, int height, int depth, int pad, int newPad)

pack-priv int
iconSize(ImageData i)

Answer the size in bytes of the file representation of the given icon

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
pack-priv int
pack-priv int
loadFileHeader(LEDataInputStream byteStream, boolean hasHeader)

pack-priv ImageData[]
pack-priv ImageData
loadIcon(int[] iconHeader)

Load one icon from the byte stream.

pack-priv int[][]
loadIconHeaders(int numIcons)

pack-priv byte[]
loadInfoHeader(int[] iconHeader)

pack-priv void
unloadIcon(ImageData icon)

Unload a single icon

pack-priv void
unloadIconHeader(ImageData i)

Unload the icon header for the given icon, calculating the offset.

pack-priv void
pack-priv void
unloadMaskData(ImageData icon)

Unload the mask data for an icon.

pack-priv void
unloadShapeData(ImageData icon)

Unload the shape data for an icon.

Inherited from org.eclipse.swt.internal.image.FileFormat:
getFileFormatloadloadFromStreamsaveunloadIntoStream

Constructor Detail

WinICOFileFormatback to summary
public WinICOFileFormat()

Method Detail

bitInvertDataback to summary
pack-priv byte[] bitInvertData(byte[] data, int startIndex, int endIndex)
convertPadback to summary
pack-priv static byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad)
iconSizeback to summary
pack-priv int iconSize(ImageData i)

Answer the size in bytes of the file representation of the given icon

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
isValidIconback to summary
pack-priv boolean isValidIcon(ImageData i)
loadFileHeaderback to summary
pack-priv int loadFileHeader(LEDataInputStream byteStream)
loadFileHeaderback to summary
pack-priv int loadFileHeader(LEDataInputStream byteStream, boolean hasHeader)
loadFromByteStreamback to summary
pack-priv ImageData[] loadFromByteStream()

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

Annotations
@Override
loadIconback to summary
pack-priv ImageData loadIcon(int[] iconHeader)

Load one icon from the byte stream.

loadIconHeadersback to summary
pack-priv int[][] loadIconHeaders(int numIcons)
loadInfoHeaderback to summary
pack-priv byte[] loadInfoHeader(int[] iconHeader)
unloadIconback to summary
pack-priv void unloadIcon(ImageData icon)

Unload a single icon

unloadIconHeaderback to summary
pack-priv void unloadIconHeader(ImageData i)

Unload the icon header for the given icon, calculating the offset.

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

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

Annotations
@Override
unloadMaskDataback to summary
pack-priv void unloadMaskData(ImageData icon)

Unload the mask data for an icon. The data is flipped vertically and inverted.

unloadShapeDataback to summary
pack-priv void unloadShapeData(ImageData icon)

Unload the shape data for an icon. The data is flipped vertically.