|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Byte-based image representaion.
| Fields inherited from class com.sun.jimi.core.raster.JimiRasterImage |
CHANNEL_ALPHA,
CHANNEL_BLUE,
CHANNEL_GREEN,
CHANNEL_RED,
UNKNOWN |
| Method Summary | |
byte[] |
asByteArray()
Return a representation of the image in a byte array. |
byte |
getPixel(int x,
int y)
Get a pixel. |
void |
getRectangle(int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
Get a rectangular area of pixel data. |
void |
getRow(int y,
byte[] buffer,
int offset)
Get a row of pixel data. |
void |
setPixel(int x,
int y,
byte value)
Set a pixel. |
void |
setRectangle(int x,
int y,
int width,
int height,
byte[] pixels,
int offset,
int scansize)
Set a rectangular area of pixel data. |
void |
setRow(int y,
byte[] pixels,
int offset)
Set a row of pixel data. |
| Methods inherited from interface com.sun.jimi.core.raster.JimiRasterImage |
getChannelRectangle,
getColorModel,
getCroppedImageProducer,
getHeight,
getPixelRGB,
getProperties,
getRectangleARGBChannels,
getRectangleRGB,
getRectangleRGBAChannels,
getRectangleRGBChannels,
getRowRGB,
getWidth,
waitInfoAvailable |
| Methods inherited from interface com.sun.jimi.core.MutableJimiImage |
mustWaitForOptions,
setDecodingController,
setError,
setFinished,
setImageConsumerHints,
setOptions,
setWaitForOptions |
| Method Detail |
public void setRectangle(int x,
int y,
int width,
int height,
byte[] pixels,
int offset,
int scansize)
throws ImageAccessException
x - x-coordinatey - y-coordinatewidth - rectangle widthheight - rectangle heightpixels - pixel dataoffset - offset in pixels to start atscansize - length from the start of one row to the start of the next
public void setRow(int y,
byte[] pixels,
int offset)
throws ImageAccessException
y - y-coordinatepixels - pixel dataoffset - offset in pixels to start at
public void setPixel(int x,
int y,
byte value)
throws ImageAccessException
x - x-coordinatey - y-coordinatevalue - pixel value
public void getRectangle(int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
throws ImageAccessException
x - x-coordinatey - y-coordinatewidth - rectangle widthheight - rectangle heightbuffer - buffer to copy pixel data intooffset - offset in buffer to start copying toscansize - length from the start of one row to the start of the next in buffer
public void getRow(int y,
byte[] buffer,
int offset)
throws ImageAccessException
y - y-coordinatebuffer - buffer to copy pixel data intooffset - offset in buffer to start copying to
public byte getPixel(int x,
int y)
throws ImageAccessException
x - x-coordinatey - y-coordinatepublic byte[] asByteArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||