API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. MultiPixelPackedSampleModel View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      SampleModel
          MultiPixelPackedSampleModel
Implements
Subclasses
Description
public class MultiPixelPackedSampleModel
  The MultiPixelPackedSampleModel class represents one-banded images and can pack multiple one-sample pixels into one data element.
See also:   
Constructors
public MultiPixelPackedSampleModel (int dataType, int w, int h, int numberOfBits)
  Constructs a MultiPixelPackedSampleModel with the specified data type, width, height and number of bits per pixel.
public MultiPixelPackedSampleModel (int dataType, int w, int h, int numberOfBits, int scanlineStride, int dataBitOffset)
  Constructs a MultiPixelPackedSampleModel with specified data type, width, height, number of bits per pixel, scanline stride and data bit offset.
Methods
Hide/Show inherited methods
public SampleModel createCompatibleSampleModel (int w, int h) [Specified in SampleModel]
  Creates a new MultiPixelPackedSampleModel with the specified width and height.
public DataBuffer createDataBuffer () [Specified in SampleModel]
  Creates a DataBuffer that corresponds to this MultiPixelPackedSampleModel.
public SampleModel createSubsetSampleModel (int[] bands) [Specified in SampleModel]
  Creates a new MultiPixelPackedSampleModel with a subset of the bands of this MultiPixelPackedSampleModel.
public boolean equals (Object o)
public int getBitOffset (int x)
  Returns the offset, in bits, into the data element in which it is stored for the xth pixel of a scanline.
public int getDataBitOffset ()
  Returns the data bit offset in bits.
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]
public int getOffset (int x, int y)
  Returns the offset of pixel (x, y) in data array elements.
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 the specified single band pixel in the first element of an int array.
public int getPixelBitStride ()
  Returns the pixel bit stride in bits.
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) [Inherited From SampleModel]
  Returns all samples for a 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) [Inherited From 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.
public int getTransferType () [Overrides SampleModel]
  Returns the TransferType used to transfer pixels by way of 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 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) [Inherited From 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) [Inherited From 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
pack-private int bitMask
Bitmask that extracts the rightmost pixel of a data element.
pack-private int dataBitOffset
The bit offset into the data array where the first pixel begins.
pack-private int dataElementSize
The size of a data element in bits.
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.
pack-private int pixelBitStride
The number of bits from one pixel to the next.
pack-private int pixelsPerDataElement
  The number of pixels that fit in a data element.
pack-private int scanlineStride
ScanlineStride of the data buffer described in data array elements.
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