Package org.eclipse.swt.internal.image
Class FileFormat
java.lang.Object
org.eclipse.swt.internal.image.FileFormat
- Direct Known Subclasses:
GIFFileFormat
,JPEGFileFormat
,OS2BMPFileFormat
,PNGFileFormat
,TIFFFileFormat
,WinBMPFileFormat
,WinICOFileFormat
Abstract factory class for loading/unloading images from files or streams
in various image file formats.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageData[]
load
(InputStream is, ImageLoader loader) Read the specified input stream using the specified loader, and return the device independent image array represented by the stream.loadFromStream
(org.eclipse.swt.internal.image.LEDataInputStream stream) Read the specified input stream, and return the device independent image array represented by the stream.static void
save
(OutputStream os, int format, ImageLoader loader) Write the device independent image array stored in the specified loader to the specified output stream using the specified file format.void
unloadIntoStream
(ImageLoader loader, org.eclipse.swt.internal.image.LEDataOutputStream stream) Write the device independent image array stored in the specified loader to the specified output stream.
-
Constructor Details
-
FileFormat
public FileFormat()
-
-
Method Details
-
loadFromStream
Read the specified input stream, and return the device independent image array represented by the stream. -
load
Read the specified input stream using the specified loader, and return the device independent image array represented by the stream. -
save
Write the device independent image array stored in the specified loader to the specified output stream using the specified file format. -
unloadIntoStream
public void unloadIntoStream(ImageLoader loader, org.eclipse.swt.internal.image.LEDataOutputStream stream) Write the device independent image array stored in the specified loader to the specified output stream.
-