Uses of Class
java.awt.image.WritableRaster
Packages that use WritableRaster
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes for creating and modifying images.
-
Uses of WritableRaster in java.awt
Methods in java.awt with parameters of type WritableRasterModifier and TypeMethodDescriptionvoidCompositeContext.compose(Raster src, Raster dstIn, WritableRaster dstOut) Composes the two sourceRasterobjects and places the result in the destinationWritableRaster. -
Uses of WritableRaster in java.awt.image
Methods in java.awt.image that return WritableRasterModifier and TypeMethodDescriptionBufferedImage.copyData(WritableRaster outRaster) Computes an arbitrary rectangular region of theBufferedImageand copies it into a specifiedWritableRaster.RenderedImage.copyData(WritableRaster raster) Computes an arbitrary rectangular region of the RenderedImage and copies it into a caller-supplied WritableRaster.static WritableRasterRaster.createBandedRaster(int dataType, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point location) Creates a Raster based on a BandedSampleModel with the specified data type, width, height, scanline stride, bank indices and band offsets.static WritableRasterRaster.createBandedRaster(int dataType, int w, int h, int bands, Point location) Creates a Raster based on a BandedSampleModel with the specified data type, width, height, and number of bands.static WritableRasterRaster.createBandedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point location) Creates a Raster based on a BandedSampleModel with the specified DataBuffer, width, height, scanline stride, bank indices, and band offsets.AffineTransformOp.createCompatibleDestRaster(Raster src) Creates a zeroed destinationRasterwith the correct size and number of bands.BandCombineOp.createCompatibleDestRaster(Raster src) Creates a zeroed destinationRasterwith 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-destinationRasterwith 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-destinationRasterwith the correct size and number of bands, given this source.ColorModel.createCompatibleWritableRaster(int w, int h) Creates aWritableRasterwith the specified width and height that has a data layout (SampleModel) compatible with thisColorModel.ComponentColorModel.createCompatibleWritableRaster(int w, int h) Creates aWritableRasterwith the specified width and height, that has a data layout (SampleModel) compatible with thisColorModel.final WritableRasterDirectColorModel.createCompatibleWritableRaster(int w, int h) Creates aWritableRasterwith the specified width and height that has a data layout (SampleModel) compatible with thisColorModel.IndexColorModel.createCompatibleWritableRaster(int w, int h) Creates aWritableRasterwith the specified width and height that has a data layout (SampleModel) compatible with thisColorModel.Raster.createCompatibleWritableRaster()Create a compatible WritableRaster the same size as this Raster with the same SampleModel and a new initialized DataBuffer.Raster.createCompatibleWritableRaster(int w, int h) Create a compatible WritableRaster with the specified size, a new SampleModel, and a new initialized DataBuffer.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.Raster.createCompatibleWritableRaster(Rectangle rect) Create a compatible WritableRaster with location (minX, minY) and size (width, height) specified by rect, a new SampleModel, and a new initialized DataBuffer.static WritableRasterRaster.createInterleavedRaster(int dataType, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point location) Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, scanline stride, pixel stride, and band offsets.static WritableRasterRaster.createInterleavedRaster(int dataType, int w, int h, int bands, Point location) Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, and number of bands.static WritableRasterRaster.createInterleavedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point location) Creates a Raster based on a PixelInterleavedSampleModel with the specified DataBuffer, width, height, scanline stride, pixel stride, and band offsets.static WritableRasterRaster.createPackedRaster(int dataType, int w, int h, int[] bandMasks, Point location) Creates a Raster based on a SinglePixelPackedSampleModel with the specified data type, width, height, and band masks.static WritableRasterRaster.createPackedRaster(int dataType, int w, int h, int bands, int bitsPerBand, Point location) Creates a Raster based on a packed SampleModel with the specified data type, width, height, number of bands, and bits per band.static WritableRasterRaster.createPackedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bandMasks, Point location) Creates a Raster based on a SinglePixelPackedSampleModel with the specified DataBuffer, width, height, scanline stride, and band masks.static WritableRasterRaster.createPackedRaster(DataBuffer dataBuffer, int w, int h, int bitsPerPixel, Point location) Creates a Raster based on a MultiPixelPackedSampleModel with the specified DataBuffer, width, height, and bits per pixel.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 WritableRasterRaster.createWritableRaster(SampleModel sm, DataBuffer db, Point location) Creates a WritableRaster with the specified SampleModel and DataBuffer.static WritableRasterRaster.createWritableRaster(SampleModel sm, Point location) Creates a WritableRaster with the specified SampleModel.WritableRaster.createWritableTranslatedChild(int childMinX, int childMinY) Create a WritableRaster with the same size, SampleModel and DataBuffer as this one, but with a different location.final WritableRasterAffineTransformOp.filter(Raster src, WritableRaster dst) Transforms the sourceRasterand stores the results in the destinationRaster.BandCombineOp.filter(Raster src, WritableRaster dst) Transforms theRasterusing the matrix specified in the constructor.final WritableRasterColorConvertOp.filter(Raster src, WritableRaster dest) ColorConverts the image data in the source Raster.final WritableRasterConvolveOp.filter(Raster src, WritableRaster dst) Performs a convolution on Rasters.final WritableRasterLookupOp.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.final WritableRasterRescaleOp.filter(Raster src, WritableRaster dst) Rescales the pixel data in the source Raster.BufferedImage.getAlphaRaster()Returns aWritableRasterrepresenting the alpha channel forBufferedImageobjects withColorModelobjects that support a separate spatial alpha channel, such asComponentColorModelandDirectColorModel.ColorModel.getAlphaRaster(WritableRaster raster) Returns aRasterrepresenting the alpha channel of an image, extracted from the inputRaster, provided that pixel values of thisColorModelrepresent color and alpha information as separate spatial bands (e.g.ComponentColorModel.getAlphaRaster(WritableRaster raster) Returns aRasterrepresenting the alpha channel of an image, extracted from the inputRaster.PackedColorModel.getAlphaRaster(WritableRaster raster) Returns aWritableRasterrepresenting the alpha channel of an image, extracted from the inputWritableRaster.BufferedImage.getRaster()Returns theWritableRaster.WritableRaster.getWritableParent()Returns the parent WritableRaster (if any) of this WritableRaster, or else null.BufferedImage.getWritableTile(int tileX, int tileY) Checks out a tile for writing.WritableRenderedImage.getWritableTile(int tileX, int tileY) Checks out a tile for writing.Methods in java.awt.image with parameters of type WritableRasterModifier and TypeMethodDescriptionColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied) Forces the raster data to match the state specified in theisAlphaPremultipliedvariable, assuming the data is currently correctly described by thisColorModel.ComponentColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied) Forces the raster data to match the state specified in theisAlphaPremultipliedvariable, assuming the data is currently correctly described by thisColorModel.final ColorModelDirectColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied) Forces the raster data to match the state specified in theisAlphaPremultipliedvariable, assuming the data is currently correctly described by thisColorModel.BufferedImage.copyData(WritableRaster outRaster) Computes an arbitrary rectangular region of theBufferedImageand copies it into a specifiedWritableRaster.RenderedImage.copyData(WritableRaster raster) Computes an arbitrary rectangular region of the RenderedImage and copies it into a caller-supplied WritableRaster.final WritableRasterAffineTransformOp.filter(Raster src, WritableRaster dst) Transforms the sourceRasterand stores the results in the destinationRaster.BandCombineOp.filter(Raster src, WritableRaster dst) Transforms theRasterusing the matrix specified in the constructor.final WritableRasterColorConvertOp.filter(Raster src, WritableRaster dest) ColorConverts the image data in the source Raster.final WritableRasterConvolveOp.filter(Raster src, WritableRaster dst) Performs a convolution on Rasters.final WritableRasterLookupOp.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.final WritableRasterRescaleOp.filter(Raster src, WritableRaster dst) Rescales the pixel data in the source Raster.ColorModel.getAlphaRaster(WritableRaster raster) Returns aRasterrepresenting the alpha channel of an image, extracted from the inputRaster, provided that pixel values of thisColorModelrepresent color and alpha information as separate spatial bands (e.g.ComponentColorModel.getAlphaRaster(WritableRaster raster) Returns aRasterrepresenting the alpha channel of an image, extracted from the inputRaster.PackedColorModel.getAlphaRaster(WritableRaster raster) Returns aWritableRasterrepresenting the alpha channel of an image, extracted from the inputWritableRaster.Constructors in java.awt.image with parameters of type WritableRasterModifierConstructorDescriptionBufferedImage(ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable<?, ?> properties) Constructs a newBufferedImagewith a specifiedColorModelandRaster.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent) Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.