|
MID Profile | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Image | |
javax.microedition.lcdui | The UI API provides a set of features for implementation of user interfaces for 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 |
Methods in javax.microedition.lcdui that return Image | |
static Image |
Image.createImage(int width,
int height)
Creates a new, mutable image for off-screen drawing. |
static Image |
Image.createImage(Image source)
Creates an immutable image from a source image. |
static Image |
Image.createImage(String name)
Creates an immutable image from decoded image data obtained from the named resource. |
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 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(InputStream stream)
Creates an immutable image from decoded image data obtained from an InputStream . |
static Image |
Image.createRGBImage(int[] rgb,
int width,
int height,
boolean processAlpha)
Creates an immutable image from a sequence of ARGB values, specified as 0xAARRGGBB . |
Image |
ChoiceGroup.getImage(int elementNum)
Gets the Image part of the element referenced by
elementNum . |
Image |
List.getImage(int elementNum)
Gets the Image part of the element referenced by
elementNum . |
Image |
ImageItem.getImage()
Gets the image contained within the ImageItem , or
null if there is no
contained image. |
Image |
Choice.getImage(int elementNum)
Gets the Image part of the element referenced by
elementNum . |
Image |
Alert.getImage()
Gets the Image used in the Alert . |
Methods in javax.microedition.lcdui with parameters of type Image | |
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. |
int |
ChoiceGroup.append(String stringPart,
Image imagePart)
Appends an element to the ChoiceGroup . |
void |
ChoiceGroup.insert(int elementNum,
String stringPart,
Image imagePart)
Inserts an element into the ChoiceGroup just prior to
the element specified. |
void |
ChoiceGroup.set(int elementNum,
String stringPart,
Image imagePart)
Sets the String and Image parts of the
element referenced by elementNum ,
replacing the previous contents of the element. |
int |
List.append(String stringPart,
Image imagePart)
Appends an element to the List . |
void |
List.insert(int elementNum,
String stringPart,
Image imagePart)
Inserts an element into the List just prior to
the element specified. |
void |
List.set(int elementNum,
String stringPart,
Image imagePart)
Sets the String and Image parts of the
element referenced by elementNum ,
replacing the previous contents of the element. |
int |
Form.append(Image img)
Adds an item consisting of one Image to the
Form . |
void |
ImageItem.setImage(Image img)
Sets the Image object contained within the
ImageItem . |
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. |
int |
Choice.append(String stringPart,
Image imagePart)
Appends an element to the Choice . |
void |
Choice.insert(int elementNum,
String stringPart,
Image imagePart)
Inserts an element into the Choice just prior to
the element specified. |
void |
Choice.set(int elementNum,
String stringPart,
Image imagePart)
Sets the String and Image parts of the
element referenced by elementNum ,
replacing the previous contents of the element. |
void |
Alert.setImage(Image img)
Sets the Image used in the Alert . |
Constructors in javax.microedition.lcdui with parameters of type Image | |
ChoiceGroup(String label,
int choiceType,
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. |
|
List(String title,
int listType,
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. |
|
ImageItem(String label,
Image img,
int layout,
String altText)
Creates a new ImageItem with the given label, image, layout
directive, and alternate text string. |
|
ImageItem(String label,
Image image,
int layout,
String altText,
int appearanceMode)
Creates a new ImageItem object with the given label, image,
layout directive, alternate text string, and appearance mode. |
|
Alert(String title,
String alertText,
Image alertImage,
AlertType alertType)
Constructs a new Alert object with the given title,
content
string and image, and alert type. |
Uses of Image in javax.microedition.lcdui.game |
Methods in javax.microedition.lcdui.game with parameters of type Image | |
void |
Sprite.setImage(Image img,
int frameWidth,
int frameHeight)
Changes the Image containing the Sprite's frames. |
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 |
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. |
|
MID Profile | |||||||||
PREV NEXT | FRAMES NO FRAMES |