Class WinICOFileFormat
java.lang.Object
org.eclipse.swt.internal.image.FileFormat
org.eclipse.swt.internal.image.FileFormat.StaticImageFileFormat
org.eclipse.swt.internal.image.WinICOFileFormat
-
Nested Class Summary
Nested classes/interfaces inherited from class FileFormat
FileFormat.StaticImageFileFormat -
Field Summary
Fields inherited from class FileFormat
compression, DEFAULT_ZOOM, inputStream, loader, outputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) byte[]bitInvertData(byte[] data, int startIndex, int endIndex) (package private) static byte[]convertPad(byte[] data, int width, int height, int depth, int pad, int newPad) (package private) intAnswer the size in bytes of the file representation of the given icon(package private) booleanisFileFormat(LEDataInputStream stream) Return whether or not the specified input stream represents a supported file format.(package private) boolean(package private) intloadFileHeader(LEDataInputStream byteStream) (package private) intloadFileHeader(LEDataInputStream byteStream, boolean hasHeader) (package private) ImageData[](package private) ImageDataloadIcon(int[] iconHeader) Load one icon from the byte stream.(package private) int[][]loadIconHeaders(int numIcons) (package private) byte[]loadInfoHeader(int[] iconHeader) (package private) voidunloadIcon(ImageData icon) Unload a single icon(package private) voidUnload the icon header for the given icon, calculating the offset.(package private) voidunloadIntoByteStream(ImageLoader loader) (package private) voidunloadMaskData(ImageData icon) Unload the mask data for an icon.(package private) voidunloadShapeData(ImageData icon) Unload the shape data for an icon.Methods inherited from class FileFormat.StaticImageFileFormat
loadFromByteStream, loadFromByteStreamBySizeMethods inherited from class FileFormat
canLoadAtZoom, isDynamicallySizableFormat, load, load, loadFromStream, loadFromStreamBySize, save, unloadIntoStream
-
Constructor Details
-
WinICOFileFormat
public WinICOFileFormat()
-
-
Method Details
-
bitInvertData
byte[] bitInvertData(byte[] data, int startIndex, int endIndex) -
convertPad
static byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad) -
iconSize
Answer the size in bytes of the file representation of the given icon -
isFileFormat
Description copied from class:FileFormatReturn whether or not the specified input stream represents a supported file format.- Specified by:
isFileFormatin classFileFormat- Throws:
IOException
-
isValidIcon
-
loadFileHeader
-
loadFileHeader
-
loadFromByteStream
ImageData[] loadFromByteStream()- Specified by:
loadFromByteStreamin classFileFormat.StaticImageFileFormat
-
loadIcon
Load one icon from the byte stream. -
loadIconHeaders
int[][] loadIconHeaders(int numIcons) -
loadInfoHeader
byte[] loadInfoHeader(int[] iconHeader) -
unloadIcon
Unload a single icon -
unloadIconHeader
Unload the icon header for the given icon, calculating the offset. -
unloadIntoByteStream
- Specified by:
unloadIntoByteStreamin classFileFormat
-
unloadMaskData
Unload the mask data for an icon. The data is flipped vertically and inverted. -
unloadShapeData
Unload the shape data for an icon. The data is flipped vertically.
-