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 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
( ); }
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.