ImageNameImage
DescriptionThe Image class represents a displayable object maintained in memory. Because Image is an abstract class, you never work with the Image class itself, but with a platform specific subclass. However, you should never need to know what that subclass is. To draw on an Image, get its graphics context. Class Definition
public abstract class java.awt.Image extends java.lang.Object implements java.io.Serializable { // Constants public final static int SCALE_AREA_AVERAGING; public final static int SCALE_DEFAULT; public final static int SCALE_FAST; public final static int SCALE_REPLICATE; public final static int SCALE_SMOOTH; public final static Object UndefinedProperty; // Instance Methods public abstract void flush(); public abstract Graphics getGraphics(); public abstract int getHeight (ImageObserver observer); public abstract Object getProperty (String name, ImageObserver observer); public Image getScaledInstance (int width, int height, int hints); public abstract ImageProducer getSource(); public abstract int getWidth (ImageObserver observer); } ConstantsSCALE_AREA_AVERAGINGpublic final static int SCALE_AREA_AVERAGINGFlag that requests use of AreaAveragingScaleFilter. SCALE_DEFAULTpublic final static int SCALE_DEFAULTFlag that requests use of the default image scaling algorithm. SCALE_FASTpublic final static int SCALE_FASTFlag that requests use of an image scaling algorithm that is faster rather than smoother. SCALE_REPLICATEpublic final static int SCALE_REPLICATEFlag that requests use of ReplicateScaleFilter. SCALE_SMOOTHpublic final static int SCALE_SMOOTHFlag that requests use of an image scaling algorithm that is smoother rather than faster. UndefinedPropertypublic final static Object UndefinedPropertyPossible return object from getProperty(). Instance Methodsflushpublic abstract void flush()
getGraphicspublic abstract Graphics getGraphics()
getHeightpublic abstract int getHeight (ImageObserver observer)
getPropertypublic abstract Object getProperty (String name, ImageObserver observer)
getScaledInstancepublic Image getScaledInstance (int width, int height, int hints)
getSourcepublic abstract ImageProducer getSource()
getWidthpublic abstract int getWidth (ImageObserver observer)
See AlsoGraphics, ImageObserver, ImageProducer, Object, Properties, String |
|