java.lang.Object | +--com.sun.kjava.Bitmap
An object of this class represents a black and white bitmap.
Constructor Summary | |
Bitmap(short[] data)
Constructor to create a bitmap. |
|
Bitmap(short width,
byte[] pixels)
Constructor defines the bitmap. |
Method Summary | |
int |
getRows()
Return the number of rows in the bitmap. |
int |
getWidth()
Return the width of the space in pixels used to display the bitmap. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Bitmap(short[] data)
data
- The Palm OS representation of a bitmap.public Bitmap(short width, byte[] pixels)
On the Palm OS, the width (in bytes) must be even. If a bitmap is constructed with an odd width, padding is automatically added. It is padded width that is given by a call to getWidth. The maximum width for a bitmap on this platform is currently 32.
width
- the width of the bitmap in bytes.pixels
- the bits of the object.Method Detail |
public int getWidth()
public int getRows()