MIDP3.0

Uses of Class
javax.microedition.lcdui.Image

Packages that use Image
javax.microedition.lcdui The APIs in the LCDUI package provide a set of features for implementing user interfaces in MIDP applications. 
javax.microedition.lcdui.game The Game API package provides a series of classes that enable the development of rich gaming content for wireless devices. 
 

Uses of Image in javax.microedition.lcdui
 

Subclasses of Image in javax.microedition.lcdui
 class AnimatedImage
          An AnimatedImage is a special type of Image that encapsulates a series frames and the length of time that each frame should be shown.
 class ScalableImage
          A ScalableImage object encapsulates vector graphics content.
 

Methods in javax.microedition.lcdui that return Image
static Image Image.createImage(byte[] imageData, int imageOffset, int imageLength)
          Creates an immutable image which is decoded from the data stored in the specified byte array at the specified offset and length.
static Image Image.createImage(Image source)
          Creates an immutable image from a source image.
static Image Image.createImage(Image image, int x, int y, int width, int height, int transform)
          Creates an immutable image using pixel data from the specified region of a source image, transformed as specified.
static Image Image.createImage(Image image, int x, int y, int width, int height, int transform, int img_width, int img_height)
          Creates an immutable image using pixel data from the specified region of a source image, transformed as specified and scaled to a specific size.
static Image Image.createImage(java.io.InputStream stream)
           Creates an immutable image from decoded image data obtained from an InputStream.
static Image Image.createImage(int width, int height)
           Creates a new, mutable image without an alpha channel for off-screen drawing.
static Image Image.createImage(int width, int height, boolean withAlpha, int fillColor)
           Creates a new mutable image with or without an alpha channel for off-screen drawing.
static Image Image.createImage(java.lang.String name)
           Creates an immutable image from decoded image data obtained from the named resource.
static Image Image.createRGBImage(int[] rgb, int width, int height, boolean processAlpha)
          Creates an immutable image from a sequence of ARGB values, specified using the 32-bit ARGB format.
 Image AnimatedImage.getFrame(int index)
          Gets the Image for the specified frame.
 Image Menu.getImage()
          Gets the Image for this Menu.
 Image ImageItem.getImage()
          Gets the image contained within the ImageItem, or null if there is no contained image.
 Image Command.getImage()
          Gets the image of the command.
 Image Alert.getImage()
          Gets the Image used in the Alert.
 Image List.getImage(int elementNum)
          Gets the Image part of the element referenced by elementNum.
 Image ChoiceGroup.getImage(int elementNum)
          Gets the Image part of the element referenced by elementNum.
 Image Choice.getImage(int elementNum)
          Gets the Image part of the element referenced by elementNum.
 Image TabbedPane.getTabIcon(int index)
          Gets the Image for the tab referenced by the given index.
 

Methods in javax.microedition.lcdui with parameters of type Image
 void TabbedPane.addTab(Screen tab, Image icon)
          Adds a tab element to the TabbedPane as the last element.
 int Form.append(Image img)
          Adds an item consisting of one Image to the Form.
 int List.append(java.lang.String stringPart, Image imagePart)
          Appends an element to the List.
 int ChoiceGroup.append(java.lang.String stringPart, Image imagePart)
          Appends an element to the ChoiceGroup.
 int Choice.append(java.lang.String stringPart, Image imagePart)
          Appends an element to the Choice.
static Image Image.createImage(Image source)
          Creates an immutable image from a source image.
static Image Image.createImage(Image image, int x, int y, int width, int height, int transform)
          Creates an immutable image using pixel data from the specified region of a source image, transformed as specified.
static Image Image.createImage(Image image, int x, int y, int width, int height, int transform, int img_width, int img_height)
          Creates an immutable image using pixel data from the specified region of a source image, transformed as specified and scaled to a specific size.
 void Graphics.drawImage(Image img, int x, int y, int anchor)
          Draws the specified image by using the anchor point.
 void Graphics.drawRegion(Image src, int x_src, int y_src, int width, int height, int transform, int x_dest, int y_dest, int anchor)
          Copies a region of the specified source image to a location within the destination, possibly transforming (rotating and reflecting) the image data using the chosen transform function.
 void Graphics.drawRegion(Image src, int x_src, int y_src, int width, int height, int transform, int x_dest, int y_dest, int anchor, int width_dest, int height_dest)
          Scales and transforms a region of the specified source image to a region within the destination, possibly transforming (rotating and reflecting) the image data using the chosen transform function and scaling the pixels to fit the destination region.
 void List.insert(int elementNum, java.lang.String stringPart, Image imagePart)
          Inserts an element into the List just prior to the element specified.
 void ChoiceGroup.insert(int elementNum, java.lang.String stringPart, Image imagePart)
          Inserts an element into the ChoiceGroup just prior to the element specified.
 void Choice.insert(int elementNum, java.lang.String stringPart, Image imagePart)
          Inserts an element into the Choice just prior to the element specified.
 void TabbedPane.insertTab(int index, Screen tab, Image icon)
          Inserts a tab element into the TabbedPane just prior to the element specified.
 void List.set(int elementNum, java.lang.String stringPart, Image imagePart)
          Sets the String and Image parts of the element referenced by elementNum, replacing the previous contents of the element.
 void ChoiceGroup.set(int elementNum, java.lang.String stringPart, Image imagePart)
          Sets the String and Image parts of the element referenced by elementNum, replacing the previous contents of the element.
 void Choice.set(int elementNum, java.lang.String stringPart, Image imagePart)
          Sets the String and Image parts of the element referenced by elementNum, replacing the previous contents of the element.
 void Notification.setImage(Image image)
          Sets the Image of the Notification.
 void Menu.setImage(Image image)
          Sets the Image for this Menu.
 void ImageItem.setImage(Image img)
          Sets the Image object contained within the ImageItem.
 void Command.setImage(Image image)
          Sets the image of the command.
 void Alert.setImage(Image img)
          Sets the Image used in the Alert.
 void TabbedPane.setTabIcon(int index, Image icon)
          Sets the Image part of the tab element referenced by index, replacing the previous image of the tab.
 

Constructors in javax.microedition.lcdui with parameters of type Image
Alert(java.lang.String title, java.lang.String alertText, Image alertImage, AlertType alertType)
          Constructs a new Alert object with the given title, content string and image, and alert type.
ChoiceGroup(java.lang.String label, int choiceType, java.lang.String[] stringElements, Image[] imageElements)
          Creates a new ChoiceGroup, specifying its title, the type of the ChoiceGroup, and an array of Strings and Images to be used as its initial contents.
Command(java.lang.String shortLabel, java.lang.String longLabel, Image image, int commandType, int priority)
          Creates a new command object with the given labels, image, type and priority.
ImageItem(java.lang.String label, Image img, int layout, java.lang.String altText)
          Creates a new ImageItem with the given label, image, layout directive, and alternate text string.
ImageItem(java.lang.String label, Image image, int layout, java.lang.String altText, int appearanceMode)
          Creates a new ImageItem object with the given label, image, layout directive, alternate text string, and appearance mode.
List(java.lang.String title, int listType, java.lang.String[] stringElements, Image[] imageElements)
          Creates a new List, specifying its title, the type of the List, and an array of Strings and Images to be used as its initial contents.
Menu(java.lang.String shortLabel, java.lang.String longLabel, Image image)
          Creates a new Menu object with the given labels and image.
Notification(NotificationType type, java.lang.String label, Image image)
          Creates a new Notification with the given type, label and image.
NotificationType(java.lang.String defaultLabel, Image defaultImage)
          Creates a new user defined NotificationType
 

Uses of Image in javax.microedition.lcdui.game
 

Methods in javax.microedition.lcdui.game with parameters of type Image
 boolean Sprite.collidesWith(Image image, int x, int y, boolean pixelLevel)
          Checks for a collision between this Sprite and the specified Image with its upper left corner at the specified location.
 void Sprite.setImage(Image img, int frameWidth, int frameHeight)
          Changes the Image containing the Sprite's frames.
 void TiledLayer.setStaticTileSet(Image image, int tileWidth, int tileHeight)
          Change the static tile set.
 

Constructors in javax.microedition.lcdui.game with parameters of type Image
Sprite(Image image)
          Creates a new non-animated Sprite using the provided Image.
Sprite(Image image, int frameWidth, int frameHeight)
          Creates a new animated Sprite using frames contained in the provided Image.
TiledLayer(int columns, int rows, Image image, int tileWidth, int tileHeight)
          Creates a new TiledLayer.
 


MIDP3.0

Send a comment or suggestionVersion 3.0 of Mobile Information Device Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-2009 Motorola Inc. Portions copyright 1993-2002 Sun Microsystems, Inc. and Motorola, Inc. All Rights Reserved.