Java java.awt.image SampleModel fields, constructors, methods, implement or subclass

Example usage for Java java.awt.image SampleModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.image SampleModel.

The text is from its open source code.

Method

SampleModelcreateCompatibleSampleModel(int w, int h)
Creates a SampleModel which describes data in this SampleModel's format, but with a different width and height.
DataBuffercreateDataBuffer()
Creates a DataBuffer that corresponds to this SampleModel.
intgetDataType()
Returns the data type of the DataBuffer storing the pixel data.
intgetHeight()
Returns the height in pixels.
intgetNumBands()
Returns the total number of bands of image data.
int[]getPixel(int x, int y, int[] iArray, DataBuffer data)
Returns the samples for a specified pixel in an int array, one sample per array element.
float[]getPixel(int x, int y, float[] fArray, DataBuffer data)
Returns the samples for the specified pixel in an array of float.
double[]getPixel(int x, int y, double[] dArray, DataBuffer data)
Returns the samples for the specified pixel in an array of double.
int[]getSampleSize()
Returns the size in bits of samples for all bands.
intgetTransferType()
Returns the TransferType used to transfer pixels via the getDataElements and setDataElements methods.
intgetWidth()
Returns the width in pixels.