org.eclipse.swt.graphics
Class ImageData
java.lang.Object
|
+--org.eclipse.swt.graphics.ImageData
- public final class ImageData
- extends Object
Instances of this class are device-independent descriptions
of images. They are typically used as an intermediate format
between loading from or writing to streams and creating an
Image.
Note that the public fields x, y,
disposalMethod and delayTime are
typically only used when the image is in a set of images used
for animation.
- See Also:
Image
|
Constructor Summary |
ImageData(String name)
Constructs an ImageData object from the file specified by name. |
ImageData
public ImageData(String name)
- Constructs an ImageData object from the file specified by name.
- Parameters:
name - - the file taken as source for the ImageData
- Throws:
SWTException -
- ERROR_INVALID_IMAGE - if the image format is not supported