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

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

Introduction

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

The text is from its open source code.

Subclass

java.awt.image.DataBuffer has subclasses.
Click this link to see all its subclasses.

Field

intTYPE_BYTE
Tag for unsigned byte data.
intTYPE_USHORT
Tag for unsigned short data.
intTYPE_SHORT
Tag for signed short data.
intTYPE_INT
Tag for int data.
intTYPE_FLOAT
Tag for float data.
intTYPE_DOUBLE
Tag for double data.
intTYPE_UNDEFINED
Tag for undefined data.

Method

intgetDataType()
Returns the data type of this DataBuffer.
intgetDataTypeSize(int type)
Returns the size (in bits) of the data type, given a datatype tag.
intgetElem(int i)
Returns the requested data array element from the first (default) bank as an integer.
intgetNumBanks()
Returns the number of banks in this DataBuffer.
int[]getOffsets()
Returns the offsets (in array elements) of all the banks.
intgetSize()
Returns the size (in array elements) of all banks.
voidsetElem(int i, int val)
Sets the requested data array element in the first (default) bank from the given integer.