Chrissirhc
Programmer
Me again there is a method in class Raster or WriteableRaster
Its called getTransferType it returns an integer which is meant to describe what kind of data buffer field is being used. (By the way what is the field in the API?). Anyway
Field Summary
protected int banks
The number of banks in this DataBuffer.
protected int dataType
The data type of this DataBuffer.
protected int offset
Offset into default (first) bank from which to get the first element.
protected int[] offsets
Offsets into all banks.
protected int size
Usable size of all banks.
static int TYPE_BYTE
Tag for unsigned byte data.
static int TYPE_DOUBLE
Tag for double data.
static int TYPE_FLOAT
Tag for float data.
static int TYPE_INT
Tag for int data.
static int TYPE_SHORT
Tag for signed short data.
static int TYPE_UNDEFINED
Tag for undefined data
static int TYPE_USHORT
Tag for unsigned short data.
How do I know which TYPE_... it is depending on what integer is returned by the method. For instance if I got 4 would that mean it was TYPE_INT ??
Thanks if anyone can help
Its called getTransferType it returns an integer which is meant to describe what kind of data buffer field is being used. (By the way what is the field in the API?). Anyway
Field Summary
protected int banks
The number of banks in this DataBuffer.
protected int dataType
The data type of this DataBuffer.
protected int offset
Offset into default (first) bank from which to get the first element.
protected int[] offsets
Offsets into all banks.
protected int size
Usable size of all banks.
static int TYPE_BYTE
Tag for unsigned byte data.
static int TYPE_DOUBLE
Tag for double data.
static int TYPE_FLOAT
Tag for float data.
static int TYPE_INT
Tag for int data.
static int TYPE_SHORT
Tag for signed short data.
static int TYPE_UNDEFINED
Tag for undefined data
static int TYPE_USHORT
Tag for unsigned short data.
How do I know which TYPE_... it is depending on what integer is returned by the method. For instance if I got 4 would that mean it was TYPE_INT ??
Thanks if anyone can help