| 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.
|
| 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 | Method and Description |
|---|---|
WritableRaster |
BufferedImage.copyData(WritableRaster
Computes an arbitrary rectangular region of the
BufferedImage and copies it into a specified
WritableRaster.
|
WritableRaster |
RenderedImage.copyData(WritableRaster
Computes an arbitrary rectangular region of the RenderedImage and copies it into a caller-supplied WritableRaster.
|
static WritableRaster |
Raster.createBandedRaster(DataBuffer
Creates a Raster based on a BandedSampleModel with the specified DataBuffer, width, height, scanline stride, bank indices, and band offsets.
|
static WritableRaster |
Raster.createBandedRaster(int dataType, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point
Creates a Raster based on a BandedSampleModel with the specified data type, width, height, scanline stride, bank indices and band offsets.
|
static WritableRaster |
Raster.createBandedRaster(int dataType, int w, int h, int bands, Point
Creates a Raster based on a BandedSampleModel with the specified data type, width, height, and number of bands.
|
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 |
Raster.createCompatibleWritableRaster()
Create a compatible WritableRaster the same size as this Raster with the same SampleModel and a new initialized DataBuffer.
|
WritableRaster |
ComponentColorModel.createCompatibleWritableRaster(int w, int h)
Creates a
WritableRaster with the specified width and height, that has a data layout (
SampleModel) compatible with this
ColorModel.
|
WritableRaster |
DirectColorModel.createCompatibleWritableRaster(int w, int h)
Creates a
WritableRaster with the specified width and height that has a data layout (
SampleModel) compatible with this
ColorModel.
|
WritableRaster |
ColorModel.createCompatibleWritableRaster(int w, int h)
Creates a
WritableRaster with the specified width and height that has a data layout (
SampleModel) compatible with this
ColorModel.
|
WritableRaster |
Raster.createCompatibleWritableRaster(int w, int h)
Create a compatible WritableRaster with the specified size, a new SampleModel, and a new initialized DataBuffer.
|
WritableRaster |
IndexColorModel.createCompatibleWritableRaster(int w, int h)
Creates a
WritableRaster with the specified width and height that has a data layout (
SampleModel) compatible with this
ColorModel.
|
WritableRaster |
Raster.createCompatibleWritableRaster(int x, int y, int w, int h)
Create a compatible WritableRaster with the specified location (minX, minY) and size (width, height), a new SampleModel, and a new initialized DataBuffer.
|
WritableRaster |
Raster.createCompatibleWritableRaster(Rectangle
Create a compatible WritableRaster with location (minX, minY) and size (width, height) specified by rect, a new SampleModel, and a new initialized DataBuffer.
|
static WritableRaster |
Raster.createInterleavedRaster(DataBuffer
Creates a Raster based on a PixelInterleavedSampleModel with the specified DataBuffer, width, height, scanline stride, pixel stride, and band offsets.
|
static WritableRaster |
Raster.createInterleavedRaster(int dataType, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point
Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, scanline stride, pixel stride, and band offsets.
|
static WritableRaster |
Raster.createInterleavedRaster(int dataType, int w, int h, int bands, Point
Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, and number of bands.
|
static WritableRaster |
Raster.createPackedRaster(DataBuffer
Creates a Raster based on a SinglePixelPackedSampleModel with the specified DataBuffer, width, height, scanline stride, and band masks.
|
static WritableRaster |
Raster.createPackedRaster(DataBuffer
Creates a Raster based on a MultiPixelPackedSampleModel with the specified DataBuffer, width, height, and bits per pixel.
|
static WritableRaster |
Raster.createPackedRaster(int dataType, int w, int h, int[] bandMasks, Point
Creates a Raster based on a SinglePixelPackedSampleModel with the specified data type, width, height, and band masks.
|
static WritableRaster |
Raster.createPackedRaster(int dataType, int w, int h, int bands, int bitsPerBand, Point
Creates a Raster based on a packed SampleModel with the specified data type, width, height, number of bands, and bits per band.
|
WritableRaster |
WritableRaster.createWritableChild(int parentX, int parentY, int w, int h, int childMinX, int childMinY, int[] bandList)
Returns a new WritableRaster which shares all or part of this WritableRaster's DataBuffer.
|
static WritableRaster |
Raster.createWritableRaster(SampleModel
Creates a WritableRaster with the specified SampleModel and DataBuffer.
|
static WritableRaster |
Raster.createWritableRaster(SampleModel
Creates a WritableRaster with the specified SampleModel.
|
WritableRaster |
WritableRaster.createWritableTranslatedChild(int childMinX, int childMinY)
Create a WritableRaster with the same size, SampleModel and DataBuffer as this one, but with a different location.
|
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.
|
WritableRaster |
BufferedImage.getAlphaRaster()
Returns a
WritableRaster representing the alpha channel for
BufferedImage objects with
ColorModel objects that support a separate spatial alpha channel, such as
ComponentColorModel and
DirectColorModel.
|
WritableRaster |
ComponentColorModel.getAlphaRaster(WritableRaster
Returns a
Raster representing the alpha channel of an image, extracted from the input
Raster.
|
WritableRaster |
ColorModel.getAlphaRaster(WritableRaster
Returns a
Raster representing the alpha channel of an image, extracted from the input
Raster, provided that pixel values of this
ColorModel represent color and alpha information as separate spatial bands (e.g.
|
WritableRaster |
PackedColorModel.getAlphaRaster(WritableRaster
Returns a
WritableRaster representing the alpha channel of an image, extracted from the input
WritableRaster.
|
WritableRaster |
BufferedImage.getRaster()
Returns the
WritableRaster.
|
WritableRaster |
WritableRaster.getWritableParent()
Returns the parent WritableRaster (if any) of this WritableRaster, or else null.
|
WritableRaster |
BufferedImage.getWritableTile(int tileX, int tileY)
Checks out a tile for writing.
|
WritableRaster |
WritableRenderedImage.getWritableTile(int tileX, int tileY)
Checks out a tile for writing.
|
| Modifier and Type | Method and Description |
|---|---|
ColorModel |
ComponentColorModel.coerceData(WritableRaster
Forces the raster data to match the state specified in the
isAlphaPremultiplied variable, assuming the data is currently correctly described by this
ColorModel.
|
ColorModel |
DirectColorModel.coerceData(WritableRaster
Forces the raster data to match the state specified in the
isAlphaPremultiplied variable, assuming the data is currently correctly described by this
ColorModel.
|
ColorModel |
ColorModel.coerceData(WritableRaster
Forces the raster data to match the state specified in the
isAlphaPremultiplied variable, assuming the data is currently correctly described by this
ColorModel.
|
WritableRaster |
BufferedImage.copyData(WritableRaster
Computes an arbitrary rectangular region of the
BufferedImage and copies it into a specified
WritableRaster.
|
WritableRaster |
RenderedImage.copyData(WritableRaster
Computes an arbitrary rectangular region of the RenderedImage and copies it into a caller-supplied WritableRaster.
|
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.
|
WritableRaster |
ComponentColorModel.getAlphaRaster(WritableRaster
Returns a
Raster representing the alpha channel of an image, extracted from the input
Raster.
|
WritableRaster |
ColorModel.getAlphaRaster(WritableRaster
Returns a
Raster representing the alpha channel of an image, extracted from the input
Raster, provided that pixel values of this
ColorModel represent color and alpha information as separate spatial bands (e.g.
|
WritableRaster |
PackedColorModel.getAlphaRaster(WritableRaster
Returns a
WritableRaster representing the alpha channel of an image, extracted from the input
WritableRaster.
|
| Constructor and Description | |
|---|---|
BufferedImage(ColorModel
Constructs a new
BufferedImage with a specified
ColorModel and
Raster.
|
|
WritableRaster(SampleModel
Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.
|