org.zkoss.image
Interface Image

All Superinterfaces:
Media
All Known Implementing Classes:
AImage

public interface Image
extends Media

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:
Images.encode(java.lang.String, java.awt.image.RenderedImage, float, boolean)

Method Summary
 int getHeight()
          Returns the height.
 int getWidth()
          Returns the width.
 javax.swing.ImageIcon toImageIcon()
          Converts to an image icon.
 
Methods inherited from interface org.zkoss.util.media.Media
getByteData, getContentType, getFormat, getName, getReaderData, getStreamData, getStringData, inMemory, isBinary
 

Method Detail

getWidth

int getWidth()
Returns the width.


getHeight

int getHeight()
Returns the height.


toImageIcon

javax.swing.ImageIcon toImageIcon()
Converts to an image icon.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo