|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nokia.mid.ui.DirectUtils
public class DirectUtils
This class is a placeholder for utility methods. It contains methods for converting standard lcdui classes to Nokia UI classes and vice versa, and a method for creating images that are empty with pixels either transparent or colored, and creating mutable images from encoded image byte arrays.
| Constructor Summary | |
|---|---|
DirectUtils()
|
|
| Method Summary | |
|---|---|
static Image |
createImage(byte[] imageData,
int imageOffset,
int imageLength)
Creates a mutable image that is decoded from the data stored in the specified byte array at the specified offset and length. |
static Image |
createImage(int width,
int height,
int argb)
The method will return a newly created mutable Image with the specified dimension and all the pixels of the image defined by the specified ARGB color. |
static DirectGraphics |
getDirectGraphics(Graphics g)
Converts standard javax.microedition.lcdui.Graphics to DirectGraphics. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectUtils()
| Method Detail |
|---|
public static DirectGraphics getDirectGraphics(Graphics g)
g - Graphics object for which DirectGraphics should be returned
public static Image createImage(byte[] imageData,
int imageOffset,
int imageLength)
imageData - the array of image data in a supported image formatimageOffset - the offset of the start of the data in the arrayimageLength - the length of the data in the array
public static Image createImage(int width,
int height,
int argb)
width - the width of the new image, in pixelsheight - the height of the new image, in pixelsargb - the initial color for image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||