|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.display.Image
public class Image
Image represents a image buffer that can hold pixel data. It can
also be a target for graphics operations.
| Method Summary | |
|---|---|
static Image |
createImage(byte[] data)
Creates a new image from the given ARW-encoded byte array. |
static Image |
createImage(InputStream in)
Creates a new image from an ARW-encoded byte stream. |
static Image |
createImage(int width,
int height)
Create a black image with the dimensions specified. |
static Image |
createImage(int width,
int height,
byte color)
Create an image with the specified size and background color. |
int |
getHeight()
Gets the image height |
int |
getWidth()
Gets the image width |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Image createImage(byte[] data)
data - the ARW-encoded image data
Image instance or null if the
data could not be processed as an ARW image.
public static Image createImage(int width,
int height)
width - image widthheight - image height
IllegalArgumentException - if the width or height are ≤ zero.
public static Image createImage(int width,
int height,
byte color)
width - image widthheight - image heightcolor - color to be used to fill the image.
IllegalArgumentException - if the width or height are ≤ zero.
public static Image createImage(InputStream in)
throws IOException
in - the input stream containing the image data
IOException - if there was an I/O error while reading from the
stream.
IllegalArgumentException - if the data is not formatted correctly
as an ARW image.public int getWidth()
public int getHeight()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||