public class ImageBuffer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_RGB565 |
Constructor and Description |
---|
ImageBuffer(int w,
int h,
int type) |
ImageBuffer(int w,
int h,
int type,
byte[] imageData) |
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
byte[] |
getImageData() |
int |
getWidth() |
void |
setImageData(byte[] imageData) |
void |
setRGB(int rgb) |
void |
setRGB(int col,
int row,
int rgb) |
void |
setRGB(int begincol,
int endcol,
int beginrow,
int endrow,
int rgb) |
public static final int TYPE_RGB565
public ImageBuffer(int w, int h, int type) throws IllegalArgumentException
IllegalArgumentException
public ImageBuffer(int w, int h, int type, byte[] imageData) throws IllegalArgumentException
IllegalArgumentException
public void setImageData(byte[] imageData) throws IllegalArgumentException
IllegalArgumentException
public void setRGB(int rgb) throws IllegalArgumentException
IllegalArgumentException
public void setRGB(int col, int row, int rgb) throws IllegalArgumentException
IllegalArgumentException
public void setRGB(int begincol, int endcol, int beginrow, int endrow, int rgb) throws IllegalArgumentException
IllegalArgumentException
public byte[] getImageData()
public int getWidth()
public int getHeight()