|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Base abstraction for raster-based JimiImages.
JimiRasterImage provides a uniform interface to raster-based images created with JIMI. Pixel data is made available in RGB format, allowing low-level image access to all images in JIMI.
| 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 |
static int |
UNKNOWN
Constant indicating unknown width or height. |
| Method Summary | |
void |
getChannelRectangle(int channel,
int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
Get an individual channel of data from a rectangular area. |
java.awt.image.ColorModel |
getColorModel()
Get the ColorModel of the image. |
java.awt.image.ImageProducer |
getCroppedImageProducer(int x,
int y,
int width,
int height)
Get an ImageProducer for producing a cropped region of the image. |
int |
getHeight()
Get the height of the image. |
int |
getPixelRGB(int x,
int y)
Get a pixel value. |
java.util.Hashtable |
getProperties()
Deprecated. use getOptions(), inherited from JimiImage |
void |
getRectangleARGBChannels(int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
Get individual channels of image data for a rectangular area. |
void |
getRectangleRGB(int x,
int y,
int width,
int height,
int[] buffer,
int offset,
int scansize)
Get a rectangular area of pixel data in RGB data expanded from the ColorModel. |
void |
getRectangleRGBAChannels(int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
Get individual channels of image data for a rectangular area. |
void |
getRectangleRGBChannels(int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
Get an individual channel of data from a rectangular area. |
void |
getRowRGB(int y,
int[] buffer,
int offset)
Get a row of pixel data in RGB data expanded from the ColorModel. |
int |
getWidth()
Get the width of the image. |
void |
waitInfoAvailable()
Wait until the image dimensions and ColorModel are known. |
| Methods inherited from interface com.sun.jimi.core.JimiImage |
getFactory,
getImageProducer,
getOptions,
isError,
setOptions,
waitFinished |
| Field Detail |
public static final int UNKNOWN
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 int getWidth()
public int getHeight()
public java.awt.image.ColorModel getColorModel()
public void getRectangleRGB(int x,
int y,
int width,
int height,
int[] buffer,
int offset,
int scansize)
throws ImageAccessException
x - x-coordy - y-coordwidth - rectangle widthheight - rectangle heightbuffer - buffer to copy data intooffset - offset in buffer to start copying atscansize - buffer scansize
public void getRowRGB(int y,
int[] buffer,
int offset)
throws ImageAccessException
y - y-coordbuffer - buffer to copy data intooffset - offset in buffer to start copying at
public int getPixelRGB(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, either CHANNEL_ALPHA, CHANNEL_RED, CHANNEL_GREEN, or
CHANNEL_BLUEx - x-coordy - y-coordwidth - rectangle widthheight - rectangle heightbuffer - buffer to copy data intooffset - offset in buffer to start copying atscansize - buffer scansize
public void getRectangleRGBChannels(int x,
int y,
int width,
int height,
byte[] buffer,
int offset,
int scansize)
throws ImageAccessException
channel - the channel, either CHANNEL_ALPHA, CHANNEL_RED, CHANNEL_GREEN, or
CHANNEL_BLUEx - x-coordy - y-coordwidth - rectangle widthheight - rectangle heightbuffer - buffer to copy data intooffset - offset in buffer to start copying atscansize - buffer scansize
public void getRectangleARGBChannels(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 data intooffset - offset in buffer to start atscansize - buffer scansize
public void getRectangleRGBAChannels(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 data intooffset - offset in buffer to start atscansize - buffer scansizepublic java.util.Hashtable getProperties()
public void waitInfoAvailable()
public java.awt.image.ImageProducer getCroppedImageProducer(int x,
int y,
int width,
int height)
x - x-coordinatey - y-coordinatewidth - region widthheight - region height
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||