January 2002
Intermediate to advanced
264 pages
8h 3m
English
javax.microedition.lcdui.Image
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 ImagecreateImage(byte[] imageData, int imgOffset, int imgLength); public static ImagecreateImage(Image source); public static ImagecreateImage(int width, int height); public static ImagecreateImage(String name); // public instance methods public GraphicsgetGraphics( ); public intgetHeight( ); public intgetWidth( ); public booleanisMutable( ); }
Read now
Unlock full access