Package org.zkoss.image
Interface Image
- All Superinterfaces:
Media
- All Known Implementing Classes:
AImage
Represents an image.
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:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the height.intgetWidth()Returns the width.Converts to an image icon.Methods inherited from interface org.zkoss.util.media.Media
getByteData, getContentType, getFormat, getName, getReaderData, getStreamData, getStringData, inMemory, isBinary, isContentDisposition
-
Method Details
-
getWidth
int getWidth()Returns the width. -
getHeight
int getHeight()Returns the height. -
toImageIcon
ImageIcon toImageIcon()Converts to an image icon.
-