DataBuffer
. It stores the N samples which make up a pixel in N separate data array elements. Different bands may be in different banks of the DataBuffer
. Accessor methods are provided so that image data can be manipulated directly. This class can support different kinds of interleaving, e.g. band interleaving, scanline interleaving, and pixel interleaving. Pixel stride is the number of data array elements between two samples for the same band on the same scanline. Scanline stride is the number of data array elements between a given sample and the corresponding sample in the same column of the next scanline. Band offsets denote the number of data array elements from the first data array element of the bank of the DataBuffer
holding each band to the first sample of the band. The bands are numbered from 0 to N-1. This class can represent image data for the dataTypes enumerated in java.awt.image.DataBuffer (all samples of a given ComponentSampleModel
are stored with the same precision) . This class adds support for Double
and Float
data types in addition to those supported by the ComponentSampleModel
class in Java 2D. All strides and offsets must be non-negative.
@see java.awt.image.ComponentSampleModel
|
|
|
|