Class anim.SingleImage
All Packages Class Hierarchy This Package Previous Next Index
Class anim.SingleImage
java.lang.Object
|
+----anim.AnimImage
|
+----anim.SingleImage
- public class SingleImage
- extends AnimImage
- implements ImageObserver
A single image used as a data source for a Sprite.
Multiple SingleImages can be grouped in an ordered sequence via ImageSequence.
Copyright (c) 1996-1997 Intel Corporation
- See Also:
- ImageSequence, DynamicDataSprite, StaticDataSprite
-
SingleImage(Image)
- Creates an SingleImage with data from an Image.
-
clearTransparency()
- Clears the transparency information for a source image.
-
finalize()
- Called immediately before garbage collection of this object.
-
getTransparencyColor()
- Returns the color value that specifies transparency in a source image.
-
imageUpdate(Image, int, int, int, int, int)
- Returns true if further calls to imageUpdate are needed by this
image observer; false otherwise.
-
setTransparencyColor(Color)
- Sets the color value that specifies transparency in a source image.
SingleImage
public SingleImage(Image i) throws InterruptedException
- Creates an SingleImage with data from an Image.
- Parameters:
- Image - awt.Image from which to create the SingleImage
- Throws: InterruptedException
- The load was aborted due to timeout.
- See Also:
- load
finalize
protected void finalize() throws Throwable
- Called immediately before garbage collection of this object.
- Throws: Throwable
- Never thrown. See Object.finalize for further information.
- Overrides:
- finalize in class Object
imageUpdate
public synchronized boolean imageUpdate(Image img,
int infoFlags,
int x,
int y,
int width,
int height)
- Returns true if further calls to imageUpdate are needed by this
image observer; false otherwise.
- See Also:
- imageUpdate
getTransparencyColor
public Color getTransparencyColor()
- Returns the color value that specifies transparency in a source image.
This value must have been set by a prior call to setTransparencyColor.
- Returns:
- s the transparent color
- See Also:
- setTransparencyColor, clearTransparency
setTransparencyColor
public void setTransparencyColor(Color c)
- Sets the color value that specifies transparency in a source image.
All pixels which match the specified color are considered transparent.
- Parameters:
- c - new transparent color, or null to clear the transparency information for the source image.
- See Also:
- getTransparencyColor, clearTransparency
clearTransparency
public void clearTransparency()
- Clears the transparency information for a source image.
- See Also:
- getTransparencyColor, setTransparencyColor
All Packages Class Hierarchy This Package Previous Next Index