API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. SinglePixelPackedSampleModel View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      SampleModel
          SinglePixelPackedSampleModel
Implements
Subclasses
Description
public 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.
See also:   
Constructors
public SinglePixelPackedSampleModel (int dataType, int w, int h, int[] bitMasks)
  Constructs a SinglePixelPackedSampleModel with bitMasks.length bands.
public SinglePixelPackedSampleModel (int dataType, int w, int h, int scanlineStride, int[] bitMasks)
  Constructs a SinglePixelPackedSampleModel with bitMasks.length bands and a scanline stride equal to scanlineStride data array elements.
Methods
Hide/Show inherited methods
public SampleModel createCompatibleSampleModel (int w, int h) [Specified in SampleModel]
  Creates a new SinglePixelPackedSampleModel with the specified width and height.
public DataBuffer createDataBuffer () [Specified in SampleModel]
  Creates a DataBuffer that corresponds to this SinglePixelPackedSampleModel.
public SampleModel createSubsetSampleModel (int[] bands) [Specified in SampleModel]
  This creates a new SinglePixelPackedSampleModel with a subset of the bands of this SinglePixelPackedSampleModel.
public boolean equals (Object o)
public int getBitMasks ()
  Returns the bit masks for all bands.
public int getBitOffsets ()
  Returns the bit offsets into the data array element representing a pixel for all bands.
public Object getDataElements (int x, int y, int w, int h, Object obj, DataBuffer data) [Inherited From SampleModel]
  Returns the pixel data for the specified rectangle of pixels in a primitive array of type TransferType.
public Object getDataElements (int x, int y, Object obj, DataBuffer data) [Specified in SampleModel]
  Returns data for a single pixel in a primitive array of type TransferType.
publicfinal int getDataType () [Inherited From SampleModel]
  Returns the data type of the DataBuffer storing the pixel data.
publicfinal int getHeight () [Inherited From SampleModel]
  Returns the height in pixels.
publicfinal int getNumBands () [Inherited From SampleModel]
  Returns the total number of bands of image data.
public int getNumDataElements () [Specified in SampleModel]
  Returns the number of data elements needed to transfer one pixel via the getDataElements and setDataElements methods.
public int getOffset (int x, int y)
  Returns the offset (in data array elements) of pixel (x,y).
public double getPixel (int x, int y, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for the specified pixel in an array of double.
public float getPixel (int x, int y, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for the specified pixel in an array of float.
public int getPixel (int x, int y, int[] iArray, DataBuffer data) [Overrides SampleModel]
  Returns all samples in for the specified pixel in an int array.
public double getPixels (int x, int y, int w, int h, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Returns all samples for a rectangle of pixels in a double array, one sample per array element.
public float getPixels (int x, int y, int w, int h, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Returns all samples for a rectangle of pixels in a float array, one sample per array element.
public int getPixels (int x, int y, int w, int h, int[] iArray, DataBuffer data) [Overrides SampleModel]
  Returns all samples for the specified rectangle of pixels in an int array, one sample per array element.
public int getSample (int x, int y, int b, DataBuffer data) [Specified in SampleModel]
  Returns as int the sample in a specified band for the pixel located at (x,y).
public double getSampleDouble (int x, int y, int b, DataBuffer data) [Inherited From SampleModel]
  Returns the sample in a specified band for a pixel located at (x,y) as a double.
public float getSampleFloat (int x, int y, int b, DataBuffer data) [Inherited From SampleModel]
  Returns the sample in a specified band for the pixel located at (x,y) as a float.
public double getSamples (int x, int y, int w, int h, int b, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for a specified band for a specified rectangle of pixels in a double array, one sample per array element.
public float getSamples (int x, int y, int w, int h, int b, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Returns the samples for a specified band for the specified rectangle of pixels in a float array, one sample per array element.
public int getSamples (int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) [Overrides SampleModel]
  Returns the samples for a specified band for the specified rectangle of pixels in an int array, one sample per array element.
public int getSampleSize () [Specified in SampleModel]
Returns the number of bits per sample for all bands.
public int getSampleSize (int band) [Specified in SampleModel]
Returns the number of bits per sample for the specified band.
public int getScanlineStride ()
  Returns the scanline stride of this SinglePixelPackedSampleModel.
public int getTransferType () [Inherited From SampleModel]
  Returns the TransferType used to transfer pixels via the getDataElements and setDataElements methods.
publicfinal int getWidth () [Inherited From SampleModel]
  Returns the width in pixels.
public int hashCode ()
public void setDataElements (int x, int y, int w, int h, Object obj, DataBuffer data) [Inherited From SampleModel]
  Sets the data for a rectangle of pixels in the specified DataBuffer from a primitive array of type TransferType.
public void setDataElements (int x, int y, Object obj, DataBuffer data) [Specified in SampleModel]
  Sets the data for a single pixel in the specified DataBuffer from a primitive array of type TransferType.
public void setPixel (int x, int y, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Sets a pixel in the DataBuffer using a double array of samples for input.
public void setPixel (int x, int y, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Sets a pixel in the DataBuffer using a float array of samples for input.
public void setPixel (int x, int y, int[] iArray, DataBuffer data) [Overrides SampleModel]
  Sets a pixel in the DataBuffer using an int array of samples for input.
public void setPixels (int x, int y, int w, int h, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Sets all samples for a rectangle of pixels from a double array containing one sample per array element.
public void setPixels (int x, int y, int w, int h, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Sets all samples for a rectangle of pixels from a float array containing one sample per array element.
public void setPixels (int x, int y, int w, int h, int[] iArray, DataBuffer data) [Overrides SampleModel]
  Sets all samples for a rectangle of pixels from an int array containing one sample per array element.
public void setSample (int x, int y, int b, double s, DataBuffer data) [Inherited From SampleModel]
  Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a double for input.
public void setSample (int x, int y, int b, float s, DataBuffer data) [Inherited From SampleModel]
  Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a float for input.
public void setSample (int x, int y, int b, int s, DataBuffer data) [Specified in SampleModel]
  Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.
public void setSamples (int x, int y, int w, int h, int b, double[] dArray, DataBuffer data) [Inherited From SampleModel]
  Sets the samples in the specified band for the specified rectangle of pixels from a double array containing one sample per array element.
public void setSamples (int x, int y, int w, int h, int b, float[] fArray, DataBuffer data) [Inherited From SampleModel]
  Sets the samples in the specified band for the specified rectangle of pixels from a float array containing one sample per array element.
public void setSamples (int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) [Overrides SampleModel]
  Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per array element.
Fields
Hide/Show inherited fields
protected int dataType [Inherited From SampleModel]
  Data type of the DataBuffer storing the pixel data.
protected int height [Inherited From SampleModel]
Height in pixels of the region of image data that this SampleModel describes.
protected int numBands [Inherited From SampleModel]
Number of bands of the image data that this SampleModel describes.
protected int width [Inherited From SampleModel]
Width in pixels of the region of image data that this SampleModel describes.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar