Uses of Class
java.awt.image.SampleModel
Packages that use SampleModel
Package
Description
Provides classes for creating and modifying images.
The main package of the Java Image I/O API.
-
Uses of SampleModel in java.awt.image
Subclasses of SampleModel in java.awt.imageModifier and TypeClassDescriptionfinal classThis class represents image data which is stored in a band interleaved fashion and for which each sample of a pixel occupies one data element of the DataBuffer.classThis class represents image data which is stored such that each sample of a pixel occupies one data element of the DataBuffer.classTheMultiPixelPackedSampleModelclass represents one-banded images and can pack multiple one-sample pixels into one data element.classThis class represents image data which is stored in a pixel interleaved fashion and for which each sample of a pixel occupies one data element of the DataBuffer.classThis class represents pixel data packed such that the N samples which make up a single pixel are stored in a single data array element, and each data data array element holds samples for only one pixel.Fields in java.awt.image declared as SampleModelModifier and TypeFieldDescriptionprotected SampleModelRaster.sampleModelThe SampleModel that describes how pixels from this Raster are stored in the DataBuffer.Methods in java.awt.image that return SampleModelModifier and TypeMethodDescriptionBandedSampleModel.createCompatibleSampleModel(int w, int h) Creates a new BandedSampleModel with the specified width and height.ColorModel.createCompatibleSampleModel(int w, int h) Creates aSampleModelwith the specified width and height that has a data layout compatible with thisColorModel.ComponentColorModel.createCompatibleSampleModel(int w, int h) Creates aSampleModelwith the specified width and height, that has a data layout compatible with thisColorModel.ComponentSampleModel.createCompatibleSampleModel(int w, int h) Creates a newComponentSampleModelwith the specified width and height.IndexColorModel.createCompatibleSampleModel(int w, int h) Creates aSampleModelwith the specified width and height that has a data layout compatible with thisColorModel.MultiPixelPackedSampleModel.createCompatibleSampleModel(int w, int h) Creates a newMultiPixelPackedSampleModelwith the specified width and height.PackedColorModel.createCompatibleSampleModel(int w, int h) Creates aSampleModelwith the specified width and height that has a data layout compatible with thisColorModel.PixelInterleavedSampleModel.createCompatibleSampleModel(int w, int h) Creates a new PixelInterleavedSampleModel with the specified width and height.abstract SampleModelSampleModel.createCompatibleSampleModel(int w, int h) Creates a SampleModel which describes data in this SampleModel's format, but with a different width and height.SinglePixelPackedSampleModel.createCompatibleSampleModel(int w, int h) Creates a new SinglePixelPackedSampleModel with the specified width and height.BandedSampleModel.createSubsetSampleModel(int[] bands) Creates a new BandedSampleModel with a subset of the bands of this BandedSampleModel.ComponentSampleModel.createSubsetSampleModel(int[] bands) Creates a new ComponentSampleModel with a subset of the bands of this ComponentSampleModel.MultiPixelPackedSampleModel.createSubsetSampleModel(int[] bands) Creates a newMultiPixelPackedSampleModelwith a subset of the bands of thisMultiPixelPackedSampleModel.PixelInterleavedSampleModel.createSubsetSampleModel(int[] bands) Creates a new PixelInterleavedSampleModel with a subset of the bands of this PixelInterleavedSampleModel.abstract SampleModelSampleModel.createSubsetSampleModel(int[] bands) Creates a new SampleModel with a subset of the bands of this SampleModel.SinglePixelPackedSampleModel.createSubsetSampleModel(int[] bands) This creates a new SinglePixelPackedSampleModel with a subset of the bands of this SinglePixelPackedSampleModel.BufferedImage.getSampleModel()Returns theSampleModelassociated with thisBufferedImage.Raster.getSampleModel()Returns the SampleModel that describes the layout of the image data.RenderedImage.getSampleModel()Returns the SampleModel associated with this image.Methods in java.awt.image with parameters of type SampleModelModifier and TypeMethodDescriptionstatic RasterRaster.createRaster(SampleModel sm, DataBuffer db, Point location) Creates a Raster with the specified SampleModel and 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.booleanColorModel.isCompatibleSampleModel(SampleModel sm) Checks if theSampleModelis compatible with thisColorModel.booleanComponentColorModel.isCompatibleSampleModel(SampleModel sm) Checks whether or not the specifiedSampleModelis compatible with thisColorModel.booleanIndexColorModel.isCompatibleSampleModel(SampleModel sm) Checks if the specifiedSampleModelis compatible with thisColorModel.booleanPackedColorModel.isCompatibleSampleModel(SampleModel sm) Checks if the specifiedSampleModelis compatible with thisColorModel.Constructors in java.awt.image with parameters of type SampleModelModifierConstructorDescriptionprotectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin) Constructs a Raster with the given SampleModel and DataBuffer.protectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent) Constructs a Raster with the given SampleModel, DataBuffer, and parent.protectedRaster(SampleModel sampleModel, Point origin) Constructs a Raster with the given SampleModel.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin) Constructs a WritableRaster with the given SampleModel and DataBuffer.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent) Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.protectedWritableRaster(SampleModel sampleModel, Point origin) Constructs a WritableRaster with the given SampleModel. -
Uses of SampleModel in javax.imageio
Fields in javax.imageio declared as SampleModelModifier and TypeFieldDescriptionprotected SampleModelImageTypeSpecifier.sampleModelASampleModelto be used as a prototype.Methods in javax.imageio that return SampleModelModifier and TypeMethodDescriptionImageTypeSpecifier.getSampleModel()Returns aSampleModelbased on the settings encapsulated within this object.ImageTypeSpecifier.getSampleModel(int width, int height) Returns aSampleModelbased on the settings encapsulated within this object.Constructors in javax.imageio with parameters of type SampleModelModifierConstructorDescriptionImageTypeSpecifier(ColorModel colorModel, SampleModel sampleModel) Constructs anImageTypeSpecifierdirectly from aColorModeland aSampleModel.