Class AImage

java.lang.Object
org.zkoss.image.AImage
All Implemented Interfaces:
Serializable, Image, Media

public class AImage extends Object implements Image, Serializable
Represents an image. Unlike java.awt.Image and javax.swing.ImageIcon, this class holds the raw image data, i.e., the original format, as opaque.

In other words, it is used to retrieve and store the opaque data as polymorphic thru the Media interface.

To encode AWT image to an instance of Image, use Images.encode(java.lang.String, java.awt.image.RenderedImage, float, boolean).

Author:
tomyeh
See Also: