| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.image |
Provides classes for creating and modifying images.
|
| javax.imageio |
The main package of the Java Image I/O API.
|
| Modifier and Type | Method and Description |
|---|---|
Raster |
PaintContext.getRaster(int x, int y, int w, int h)
Returns a
Raster containing the colors generated for the graphics operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeContext.compose(Raster
Composes the two source
Raster objects and places the result in the destination
WritableRaster.
|
| Modifier and Type | Class and Description |
|---|---|
class |
WritableRaster
This class extends Raster to provide pixel writing capabilities.
|
| Modifier and Type | Field and Description |
|---|---|
protected Raster |
Raster.parent
The parent of this Raster, or null.
|
| Modifier and Type | Method and Description |
|---|---|
Raster |
Raster.createChild(int parentX, int parentY, int width, int height, int childMinX, int childMinY, int[] bandList)
Returns a new Raster which shares all or part of this Raster's DataBuffer.
|
static Raster |
Raster.createRaster(SampleModel
Creates a Raster with the specified SampleModel and DataBuffer.
|
Raster |
Raster.createTranslatedChild(int childMinX, int childMinY)
Create a Raster with the same size, SampleModel and DataBuffer as this one, but with a different location.
|
Raster |
BufferedImage.getData()
Returns the image as one large tile.
|
Raster |
RenderedImage.getData()
Returns the image as one large tile (for tile based images this will require fetching the whole image and copying the image data over).
|
Raster |
BufferedImage.getData(Rectangle
Computes and returns an arbitrary region of the
BufferedImage.
|
Raster |
RenderedImage.getData(Rectangle
Computes and returns an arbitrary region of the RenderedImage.
|
Raster |
Raster.getParent()
Returns the parent Raster (if any) of this Raster or null.
|
Raster |
BufferedImage.getTile(int tileX, int tileY)
Returns tile (
tileX,
tileY).
|
Raster |
RenderedImage.getTile(int tileX, int tileY)
Returns tile (tileX, tileY).
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
IndexColorModel.convertToIntDiscrete(Raster
Returns a new
BufferedImage of TYPE_INT_ARGB or TYPE_INT_RGB that has a
Raster with pixel data computed by expanding the indices in the source
Raster using the color/alpha component arrays of this
ColorModel.
|
WritableRaster |
ConvolveOp.createCompatibleDestRaster(Raster
Creates a zeroed destination Raster with the correct size and number of bands, given this source.
|
WritableRaster |
BandCombineOp.createCompatibleDestRaster(Raster
Creates a zeroed destination
Raster with the correct size and number of bands.
|
WritableRaster |
RescaleOp.createCompatibleDestRaster(Raster
Creates a zeroed-destination
Raster with the correct size and number of bands, given this source.
|
WritableRaster |
ColorConvertOp.createCompatibleDestRaster(Raster
Creates a zeroed destination Raster with the correct size and number of bands, given this source.
|
WritableRaster |
AffineTransformOp.createCompatibleDestRaster(Raster
Creates a zeroed destination
Raster with the correct size and number of bands.
|
WritableRaster |
LookupOp.createCompatibleDestRaster(Raster
Creates a zeroed-destination
Raster with the correct size and number of bands, given this source.
|
WritableRaster |
RasterOp.createCompatibleDestRaster(Raster
Creates a zeroed destination Raster with the correct size and number of bands.
|
WritableRaster |
ConvolveOp.filter(Raster
Performs a convolution on Rasters.
|
WritableRaster |
BandCombineOp.filter(Raster
Transforms the
Raster using the matrix specified in the constructor.
|
WritableRaster |
RescaleOp.filter(Raster
Rescales the pixel data in the source Raster.
|
WritableRaster |
ColorConvertOp.filter(Raster
ColorConverts the image data in the source Raster.
|
WritableRaster |
AffineTransformOp.filter(Raster
Transforms the source
Raster and stores the results in the destination
Raster.
|
WritableRaster |
LookupOp.filter(Raster
Performs a lookup operation on a
Raster.
|
WritableRaster |
RasterOp.filter(Raster
Performs a single-input/single-output operation from a source Raster to a destination Raster.
|
Rectangle2D |
ConvolveOp.getBounds2D(Raster
Returns the bounding box of the filtered destination Raster.
|
Rectangle2D |
BandCombineOp.getBounds2D(Raster
Returns the bounding box of the transformed destination.
|
Rectangle2D |
RescaleOp.getBounds2D(Raster
Returns the bounding box of the rescaled destination Raster.
|
Rectangle2D |
ColorConvertOp.getBounds2D(Raster
Returns the bounding box of the destination, given this source.
|
Rectangle2D |
AffineTransformOp.getBounds2D(Raster
Returns the bounding box of the transformed destination.
|
Rectangle2D |
LookupOp.getBounds2D(Raster
Returns the bounding box of the filtered destination Raster.
|
Rectangle2D |
RasterOp.getBounds2D(Raster
Returns the bounding box of the filtered destination Raster.
|
boolean |
ComponentColorModel.isCompatibleRaster(Raster
Returns true if
raster is compatible with this
ColorModel; false if it is not.
|
boolean |
DirectColorModel.isCompatibleRaster(Raster
Returns
true if
raster is compatible with this
ColorModel and
false if it is not.
|
boolean |
ColorModel.isCompatibleRaster(Raster
Returns
true if
raster is compatible with this
ColorModel and
false if it is not.
|
boolean |
IndexColorModel.isCompatibleRaster(Raster
Returns
true if
raster is compatible with this
ColorModel or
false if it is not compatible with this
ColorModel.
|
void |
BufferedImage.setData(Raster
Sets a rectangular region of the image to the contents of the specified
Raster
r, which is assumed to be in the same coordinate space as the
BufferedImage.
|
void |
WritableRenderedImage.setData(Raster
Sets a rect of the image to the contents of the Raster r, which is assumed to be in the same coordinate space as the WritableRenderedImage.
|
void |
WritableRaster.setDataElements(int x, int y, Raster
Sets the data for a rectangle of pixels from an input Raster.
|
void |
WritableRaster.setRect(int dx, int dy, Raster
Copies pixels from Raster srcRaster to this WritableRaster.
|
void |
WritableRaster.setRect(Raster
Copies pixels from Raster srcRaster to this WritableRaster.
|
| Constructor and Description | |
|---|---|
Raster(SampleModel
Constructs a Raster with the given SampleModel, DataBuffer, and parent.
|
| Modifier and Type | Field and Description |
|---|---|
protected Raster |
IIOImage.raster
The
Raster being referenced.
|
| Modifier and Type | Method and Description |
|---|---|
Raster |
IIOImage.getRaster()
Returns the currently set
Raster, or
null if only a
RenderedImage is available.
|
Raster |
ImageReader.readRaster(int imageIndex, ImageReadParam
Returns a new
Raster object containing the raw pixel data from the image stream, without any color conversion applied.
|
Raster |
ImageReader.readTileRaster(int imageIndex, int tileX, int tileY)
Returns a new
Raster object containing the raw pixel data from the tile, without any color conversion applied.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ImageWriter.replacePixels(Raster
Replaces a portion of an image already present in the output with a portion of the given
Raster.
|
void |
IIOImage.setRaster(Raster
Sets the current
Raster.
|
| Constructor and Description | |
|---|---|
IIOImage(Raster
Constructs an
IIOImage containing a
Raster, and thumbnails and metadata associated with it.
|