|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.Object3D
javax.microedition.m3g.Image2D
A two-dimensional image that can be used as a texture, background or sprite image.
Field Summary | |
static int |
ALPHA
A constructor parameter specifying that this Image2D has an alpha component only. |
static int |
LUMINANCE
A constructor parameter specifying that this Image2D has a luminance component only. |
static int |
LUMINANCE_ALPHA
A constructor parameter specifying that this Image2D has luminance and alpha components. |
static int |
RGB
A constructor parameter specifying that this Image2D has red, green and blue color components. |
static int |
RGBA
A constructor parameter specifying that this Image2D has red, green, blue and alpha components. |
Constructor Summary | |
Image2D(int format,
int width,
int height)
Constructs an empty, mutable Image2D with the given dimensions. |
|
Image2D(int format,
int width,
int height,
byte[] image)
Constructs an immutable Image2D by copying pixels from a byte array. |
|
Image2D(int format,
int width,
int height,
byte[] image,
byte[] palette)
Constructs an immutable Image2D by copying palette indices from a byte array, and the palette entries from another byte array. |
|
Image2D(int format,
java.lang.Object image)
Constructs an immutable Image2D by copying pixels from a MIDP or AWT Image. |
Method Summary | |
int |
getFormat()
Gets the internal format of this Image2D. |
int |
getHeight()
Gets the height of this Image2D, in pixels. |
int |
getWidth()
Gets the width of this Image2D, in pixels. |
boolean |
isMutable()
Queries whether this Image2D is mutable. |
void |
set(int x,
int y,
int width,
int height,
byte[] image)
Updates a rectangular area of this Image2D by copying pixels from a byte array. |
Methods inherited from class javax.microedition.m3g.Object3D |
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ALPHA
public static final int LUMINANCE
public static final int LUMINANCE_ALPHA
public static final int RGB
public static final int RGBA
Constructor Detail |
public Image2D(int format, java.lang.Object image)
public Image2D(int format, int width, int height, byte[] image)
public Image2D(int format, int width, int height, byte[] image, byte[] palette)
public Image2D(int format, int width, int height)
Method Detail |
public void set(int x, int y, int width, int height, byte[] image)
public boolean isMutable()
public int getFormat()
public int getWidth()
public int getHeight()
|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |