com.cult3d
Class TextureImage
java.lang.Object
|
+--java.awt.Image
|
+--com.cult3d.TextureImage
- public class TextureImage
- extends java.awt.Image
This class implements an off-screen drawable image.
To obtain an instance of this class use
com.cult3d.Cult.createImage().
- See Also:
Cult.createImage(int, int)
Fields inherited from class java.awt.Image |
SCALE_AREA_AVERAGING,
SCALE_DEFAULT,
SCALE_FAST,
SCALE_REPLICATE,
SCALE_SMOOTH,
UndefinedProperty |
Method Summary |
void |
flush()
Flushes all resources being used by this Image object. |
java.awt.Graphics |
getGraphics()
Gets a graphics object to draw into this image. |
int |
getHeight(java.awt.image.ImageObserver observer)
Gets the actual height of the image. |
java.lang.Object |
getProperty(java.lang.String name,
java.awt.image.ImageObserver observer)
Gets a property of the image by name. |
java.awt.image.ImageProducer |
getSource()
Gets the object that produces the pixels for the image. |
int |
getWidth(java.awt.image.ImageObserver observer)
Gets the actual width of the image. |
Methods inherited from class java.awt.Image |
getScaledInstance |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getWidth
public int getWidth(java.awt.image.ImageObserver observer)
- Gets the actual width of the image.
- Overrides:
- getWidth in class java.awt.Image
- See Also:
getHeight(java.awt.image.ImageObserver)
getHeight
public int getHeight(java.awt.image.ImageObserver observer)
- Gets the actual height of the image.
- Overrides:
- getHeight in class java.awt.Image
- See Also:
getWidth(java.awt.image.ImageObserver)
getSource
public java.awt.image.ImageProducer getSource()
- Gets the object that produces the pixels for the image.
This is used by the Image filtering classes and by the
image conversion and scaling code.
- Overrides:
- getSource in class java.awt.Image
getGraphics
public java.awt.Graphics getGraphics()
- Gets a graphics object to draw into this image.
- Overrides:
- getGraphics in class java.awt.Image
- See Also:
TextureGraphics
getProperty
public java.lang.Object getProperty(java.lang.String name,
java.awt.image.ImageObserver observer)
- Gets a property of the image by name.
- Overrides:
- getProperty in class java.awt.Image
flush
public void flush()
- Flushes all resources being used by this Image object.
- Overrides:
- flush in class java.awt.Image