Uses of Class
java.awt.image.Raster
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for creating and modifying images.
The main package of the Java Image I/O API.
-
Uses of Raster in java.awt
Modifier and TypeMethodDescriptionPaintContext.getRaster(int x, int y, int w, int h)
Returns aRaster
containing the colors generated for the graphics operation.Modifier and TypeMethodDescriptionvoid
CompositeContext.compose(Raster src, Raster dstIn, WritableRaster dstOut)
Composes the two sourceRaster
objects and places the result in the destinationWritableRaster
. -
Uses of Raster in java.awt.image
Modifier and TypeClassDescriptionclass
This class extends Raster to provide pixel writing capabilities.Modifier and TypeFieldDescriptionprotected Raster
Raster.parent
The parent of this Raster, or null.Modifier and TypeMethodDescriptionRaster.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 sm, DataBuffer db, Point location)
Creates a Raster with the specified SampleModel and DataBuffer.Raster.createTranslatedChild(int childMinX, int childMinY)
Create a Raster with the same size, SampleModel and DataBuffer as this one, but with a different location.BufferedImage.getData()
Returns the image as one large tile.Computes and returns an arbitrary region of theBufferedImage
.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).Computes and returns an arbitrary region of the RenderedImage.Raster.getParent()
Returns the parent Raster (if any) of this Raster or null.BufferedImage.getTile(int tileX, int tileY)
Returns tile (tileX
,tileY
).RenderedImage.getTile(int tileX, int tileY)
Returns tile (tileX, tileY).Modifier and TypeMethodDescriptionIndexColorModel.convertToIntDiscrete(Raster raster, boolean forceARGB)
Returns a newBufferedImage
of TYPE_INT_ARGB or TYPE_INT_RGB that has aRaster
with pixel data computed by expanding the indices in the sourceRaster
using the color/alpha component arrays of thisColorModel
.AffineTransformOp.createCompatibleDestRaster(Raster src)
Creates a zeroed destinationRaster
with the correct size and number of bands.BandCombineOp.createCompatibleDestRaster(Raster src)
Creates a zeroed destinationRaster
with the correct size and number of bands.ColorConvertOp.createCompatibleDestRaster(Raster src)
Creates a zeroed destination Raster with the correct size and number of bands, given this source.ConvolveOp.createCompatibleDestRaster(Raster src)
Creates a zeroed destination Raster with the correct size and number of bands, given this source.LookupOp.createCompatibleDestRaster(Raster src)
Creates a zeroed-destinationRaster
with the correct size and number of bands, given this source.RasterOp.createCompatibleDestRaster(Raster src)
Creates a zeroed destination Raster with the correct size and number of bands.RescaleOp.createCompatibleDestRaster(Raster src)
Creates a zeroed-destinationRaster
with the correct size and number of bands, given this source.AffineTransformOp.filter(Raster src, WritableRaster dst)
Transforms the sourceRaster
and stores the results in the destinationRaster
.BandCombineOp.filter(Raster src, WritableRaster dst)
Transforms theRaster
using the matrix specified in the constructor.ColorConvertOp.filter(Raster src, WritableRaster dest)
ColorConverts the image data in the source Raster.ConvolveOp.filter(Raster src, WritableRaster dst)
Performs a convolution on Rasters.LookupOp.filter(Raster src, WritableRaster dst)
Performs a lookup operation on aRaster
.RasterOp.filter(Raster src, WritableRaster dest)
Performs a single-input/single-output operation from a source Raster to a destination Raster.RescaleOp.filter(Raster src, WritableRaster dst)
Rescales the pixel data in the source Raster.AffineTransformOp.getBounds2D(Raster src)
Returns the bounding box of the transformed destination.BandCombineOp.getBounds2D(Raster src)
Returns the bounding box of the transformed destination.ColorConvertOp.getBounds2D(Raster src)
Returns the bounding box of the destination, given this source.ConvolveOp.getBounds2D(Raster src)
Returns the bounding box of the filtered destination Raster.LookupOp.getBounds2D(Raster src)
Returns the bounding box of the filtered destination Raster.RasterOp.getBounds2D(Raster src)
Returns the bounding box of the filtered destination Raster.RescaleOp.getBounds2D(Raster src)
Returns the bounding box of the rescaled destination Raster.boolean
ColorModel.isCompatibleRaster(Raster raster)
Returnstrue
ifraster
is compatible with thisColorModel
andfalse
if it is not.boolean
ComponentColorModel.isCompatibleRaster(Raster raster)
Returns true ifraster
is compatible with thisColorModel
; false if it is not.boolean
DirectColorModel.isCompatibleRaster(Raster raster)
Returnstrue
ifraster
is compatible with thisColorModel
andfalse
if it is not.boolean
IndexColorModel.isCompatibleRaster(Raster raster)
Returnstrue
ifraster
is compatible with thisColorModel
orfalse
if it is not compatible with thisColorModel
.void
Sets a rectangular region of the image to the contents of the specifiedRaster r
, which is assumed to be in the same coordinate space as theBufferedImage
.void
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 inRaster)
Sets the data for a rectangle of pixels from an input Raster.void
Copies pixels from Raster srcRaster to this WritableRaster.void
Copies pixels from Raster srcRaster to this WritableRaster.ModifierConstructorDescriptionprotected
Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
Constructs a Raster with the given SampleModel, DataBuffer, and parent. -
Uses of Raster in javax.imageio
Modifier and TypeMethodDescriptionIIOImage.getRaster()
Returns the currently setRaster
, ornull
if only aRenderedImage
is available.ImageReader.readRaster(int imageIndex, ImageReadParam param)
Returns a newRaster
object containing the raw pixel data from the image stream, without any color conversion applied.ImageReader.readTileRaster(int imageIndex, int tileX, int tileY)
Returns a newRaster
object containing the raw pixel data from the tile, without any color conversion applied.Modifier and TypeMethodDescriptionvoid
ImageWriter.replacePixels(Raster raster, ImageWriteParam param)
Replaces a portion of an image already present in the output with a portion of the givenRaster
.void
Sets the currentRaster
.ModifierConstructorDescriptionIIOImage(Raster raster, List<? extends BufferedImage> thumbnails, IIOMetadata metadata)
Constructs anIIOImage
containing aRaster
, and thumbnails and metadata associated with it.