Package 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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `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, isContentDisposition`

- - ### Method Detail

    - #### getWidth

          int getWidth()

      Returns the width.

    - #### getHeight

          int getHeight()

      Returns the height.

    - #### toImageIcon

          javax.swing.ImageIcon toImageIcon()

      Converts to an image icon.