|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Int-based image representation.
| Field Summary | |
static int |
CHANNEL_ALPHA
Channel constant |
static int |
CHANNEL_BLUE
Channel constant |
static int |
CHANNEL_GREEN
Channel constant |
static int |
CHANNEL_RED
Channel constant |
| Fields inherited from class com.sun.jimi.core.raster.JimiRasterImage |
CHANNEL_ALPHA,
CHANNEL_BLUE,
CHANNEL_GREEN,
CHANNEL_RED,
UNKNOWN |
| Method Summary | |
int[] |
asIntArray()
Return a representation of the image in an int array. |
void |
getChannelRectangle(int channel,
int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
Get a rectangular area of pixel data for a single byte channel of the image. |
void |
getChannelRow(int channel,
int y,
byte[] buffer,
int offset)
Get a row of pixel data for a single byte channel of the image. |
int |
getPixel(int x,
int y)
Get a pixel. |
void |
getRectangle(int x,
int y,
int width,
int height,
int[] buffer,
int offset,
int scansize)
Get a rectangular area of pixel data. |
void |
getRow(int y,
int[] buffer,
int offset)
Get a row of pixel data. |
void |
setPixel(int x,
int y,
int value)
Set a pixel. |
void |
setRectangle(int x,
int y,
int width,
int height,
int[] pixels,
int offset,
int scansize)
Set a rectangular area of pixel data. |
void |
setRow(int y,
int[] pixels,
int offset)
Set a row of pixel data. |
| Methods inherited from interface com.sun.jimi.core.raster.JimiRasterImage |
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 |
| Field Detail |
public static final int CHANNEL_ALPHA
public static final int CHANNEL_RED
public static final int CHANNEL_GREEN
public static final int CHANNEL_BLUE
| Method Detail |
public void setRectangle(int x,
int y,
int width,
int height,
int[] 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,
int[] pixels,
int offset)
throws ImageAccessException
y - y-coordinatepixels - pixel dataoffset - offset in pixels to start at
public void setPixel(int x,
int y,
int value)
throws ImageAccessException
x - x-coordinatey - y-coordinatevalue - pixel value
public void getRectangle(int x,
int y,
int width,
int height,
int[] 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,
int[] buffer,
int offset)
throws ImageAccessException
y - y-coordinatebuffer - buffer to copy pixel data intooffset - offset in buffer to start copying to
public int getPixel(int x,
int y)
throws ImageAccessException
x - x-coordinatey - y-coordinate
public void getChannelRectangle(int channel,
int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
throws ImageAccessException
channel - the channel to read, either CHANNEL_ALPHA, CHANNEL_RED, CHANNEL_GREEN, or
CHANNEL_BLUEx - 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 getChannelRow(int channel,
int y,
byte[] buffer,
int offset)
throws ImageAccessException
channel - the channel to read, either CHANNEL_ALPHA, CHANNEL_RED, CHANNEL_GREEN, or
CHANNEL_BLUEy - y-coordinatebuffer - the buffer to copy intooffset - offset in buffer to start copying topublic int[] asIntArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||