JavaTM 2 Platform
Std. Ed. v1.3.1

Uses of Class
java.awt.image.SampleModel

Packages that use SampleModel
java.awt.image Provides classes for creating and modifying images. 
 

Uses of SampleModel in java.awt.image
 

Subclasses of SampleModel in java.awt.image
 class BandedSampleModel
          This 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.
 class ComponentSampleModel
          This class represents image data which is stored such that each sample of a pixel occupies one data element of the DataBuffer.
 class MultiPixelPackedSampleModel
          The MultiPixelPackedSampleModel class represents one-banded images and can pack multiple one-sample pixels into one data element.
 class PixelInterleavedSampleModel
          This 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.
 class SinglePixelPackedSampleModel
          This 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 SampleModel
protected  SampleModel Raster.sampleModel
          The SampleModel that describes how pixels from this Raster are stored in the DataBuffer.
 

Methods in java.awt.image that return SampleModel
abstract  SampleModel SampleModel.createCompatibleSampleModel(int w, int h)
          Creates a SampleModel which describes data in this SampleModel's format, but with a different width and height.
abstract  SampleModel SampleModel.createSubsetSampleModel(int[] bands)
          Creates a new SampleModel with a subset of the bands of this SampleModel.
 SampleModel ComponentSampleModel.createCompatibleSampleModel(int w, int h)
          Creates a new ComponentSampleModel with the specified width and height.
 SampleModel ComponentSampleModel.createSubsetSampleModel(int[] bands)
          This creates a new ComponentSampleModel with a subset of the bands of this ComponentSampleModel.
 SampleModel PixelInterleavedSampleModel.createCompatibleSampleModel(int w, int h)
          Creates a new PixelInterleavedSampleModel with the specified width and height.
 SampleModel PixelInterleavedSampleModel.createSubsetSampleModel(int[] bands)
          Creates a new PixelInterleavedSampleModel with a subset of the bands of this PixelInterleavedSampleModel.
 SampleModel BandedSampleModel.createCompatibleSampleModel(int w, int h)
          Creates a new BandedSampleModel with the specified width and height.
 SampleModel BandedSampleModel.createSubsetSampleModel(int[] bands)
          Creates a new BandedSampleModel with a subset of the bands of this BandedSampleModel.
 SampleModel RenderedImage.getSampleModel()
          Returns the SampleModel associated with this image.
 SampleModel BufferedImage.getSampleModel()
          Returns the SampleModel associated with this BufferedImage.
 SampleModel Raster.getSampleModel()
          Returns the SampleModel that describes the layout of the image data.
 SampleModel ColorModel.createCompatibleSampleModel(int w, int h)
          Creates a SampleModel with the specified width and height that has a data layout compatible with this ColorModel.
 SampleModel PackedColorModel.createCompatibleSampleModel(int w, int h)
          Creates a SampleModel with the specified width and height that has a data layout compatible with this ColorModel.
 SampleModel ComponentColorModel.createCompatibleSampleModel(int w, int h)
          Creates a SampleModel with the specified width and height, that has a data layout compatible with this ColorModel.
 SampleModel MultiPixelPackedSampleModel.createCompatibleSampleModel(int w, int h)
          Creates a new MultiPixelPackedSampleModel with the specified width and height.
 SampleModel MultiPixelPackedSampleModel.createSubsetSampleModel(int[] bands)
          Creates a new MultiPixelPackedSampleModel with a subset of the bands of this MultiPixelPackedSampleModel.
 SampleModel SinglePixelPackedSampleModel.createCompatibleSampleModel(int w, int h)
          This creates a new SinglePixelPackedSampleModel with the specified width and height.
 SampleModel SinglePixelPackedSampleModel.createSubsetSampleModel(int[] bands)
          This creates a new SinglePixelPackedSampleModel with a subset of the bands of this SinglePixelPackedSampleModel.
 SampleModel IndexColorModel.createCompatibleSampleModel(int w, int h)
          Creates a SampleModel with the specified width and height that has a data layout compatible with this ColorModel.
 

Methods in java.awt.image with parameters of type SampleModel
static Raster Raster.createRaster(SampleModel sm, DataBuffer db, Point location)
          Creates a Raster with the specified SampleModel and DataBuffer.
static WritableRaster Raster.createWritableRaster(SampleModel sm, Point location)
          Creates a WritableRaster with the specified SampleModel.
static WritableRaster Raster.createWritableRaster(SampleModel sm, DataBuffer db, Point location)
          Creates a WritableRaster with the specified SampleModel and DataBuffer.
 boolean ColorModel.isCompatibleSampleModel(SampleModel sm)
          Checks if the SampleModel is compatible with this ColorModel.
 boolean PackedColorModel.isCompatibleSampleModel(SampleModel sm)
          Checks if the specified SampleModel is compatible with this ColorModel.
 boolean ComponentColorModel.isCompatibleSampleModel(SampleModel sm)
          Checks whether or not the specified SampleModel is compatible with this ColorModel.
 boolean IndexColorModel.isCompatibleSampleModel(SampleModel sm)
          Checks if the specified SampleModel is compatible with this ColorModel.
 

Constructors in java.awt.image with parameters of type SampleModel
Raster(SampleModel sampleModel, Point origin)
          Constructs a Raster with the given SampleModel.
Raster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin)
          Constructs a Raster with the given SampleModel and DataBuffer.
Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
          Constructs a Raster with the given SampleModel, DataBuffer, and parent.
WritableRaster(SampleModel sampleModel, Point origin)
          Constructs a WritableRaster with the given SampleModel.
WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin)
          Constructs a WritableRaster with the given SampleModel and DataBuffer.
WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
          Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.
 


JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.