Methods Summary |
---|
public byte[] | getData()This method returns a digest of the pixelmap of the current MIDP
display area. For now, this is defined as the drawing area, as
well as the status bar at the top of the screen and the area of
the screen devoted to scroll arrows and softkey menu labels.
It does not digest the entire MIDP window, i.e. the handset
graphics.
WARNING:
Minimal safety checks are done within the native code called by
this method to determine that the native display data has
been initialized. This method should only be called from
within a MIDlet with a valid Display instance.
byte[] data = new byte[4];
int digest = sysGetScreenDigest();
if (digest == 0)
return null;
data[0] = (byte)((digest >> 24) & 0xff);
data[1] = (byte)((digest >> 16) & 0xff);
data[2] = (byte)((digest >> 8) & 0xff);
data[3] = (byte)(digest & 0xff);
return data;
|
public static com.sun.midp.lcdui.ScreenGrabber | getInstance()Use to obtain a reference to a ScreenGrabber instance.
if (sg == null)
sg = new ScreenGrabber();
return sg;
|
private static native int | sysGetScreenDigest()Native method sysGetScreenDigest is
defined in file screenGrabber.c
|