Name

javax.microedition.lcdui.Image

Synopsis

This class is used to hold graphical image data. Images are either mutable or immutable, depending upon how they are created. Mutable images are created in offscreen memory and immutable images are generally created by loading images from resource bundles, files, or the network.

All the MIDP implementations are required to support images stored in PNG format.

public classImage {
   // public class methods
   public static Image createImage(byte[] imageData, int imgOffset, int imgLength);
   public static Image createImage(Image source);
   public static Image createImage(int width, int height);
   public static Image createImage(String name);
   // public instance methods
   public Graphics getGraphics(  );
   public int getHeight(  );
   public int getWidth(  );
   public boolean isMutable(  );
}

Get Wireless Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.