brf.j2me.dynaworks.util
Class Bitmap

java.lang.Object
  |
  +--brf.j2me.dynaworks.util.Bitmap

public class Bitmap
extends java.lang.Object

The Bitmap class can hold raster images.

Version:
1.0
Author:
Bernd R. Fix

Field Summary
private  int bpp
          bits per pixel (color depth).
private  byte[] data
          bitmap data.
private  int height
          height of the bitmap.
private  int width
          width of the bitmap.
 
Constructor Summary
Bitmap(int w, int h, byte[] data)
          constructor.
 
Method Summary
 byte[] getData()
          get the bitmap data.
 int getHeight()
          get the height of the bitmap.
 int getWidth()
          get the width of the bitmap.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

width

private int width
width of the bitmap.


height

private int height
height of the bitmap.


bpp

private int bpp
bits per pixel (color depth).


data

private byte[] data
bitmap data.

Constructor Detail

Bitmap

public Bitmap(int w,
              int h,
              byte[] data)
constructor.

Parameters:
w - int - width of the image.
h - int - height of the image.
data - byte[] - array of pixels.
Method Detail

getWidth

public int getWidth()
get the width of the bitmap.

Returns:
int - width

getHeight

public int getHeight()
get the height of the bitmap.

Returns:
int - height

getData

public byte[] getData()
get the bitmap data.

Returns:
byte[] - image data.