|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.io.raster.RasterBuf
Rectangulo de pixeles. parecido a java.awt.image.Raster
Field Summary |
Fields inherited from interface org.cresques.io.raster.IRaster |
TYPE_BYTE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_IMAGE, TYPE_INT, TYPE_SHORT, TYPE_UNDEFINED, TYPE_USHORT |
Constructor Summary | |
RasterBuf(int dataType,
int width,
int height,
int bandNr,
java.awt.Point orig)
Constructor |
Method Summary | |
int |
getBandNr()
Número de bandas |
int |
getDataSize()
Obtiene el tipo de dato |
int |
getDataType()
Devuelve el tipo de datos del raster |
int |
getElemInt(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa. |
void |
getElemInt(int x,
int y,
int[] px)
Obtiene sobre un array de bandas el valor del raster en la coordenada que se le pasa. |
void |
getElemShort(int x,
int y,
int[] px)
Obtiene sobre un array de bandas el valor del raster en la coordenada que se le pasa. |
int |
getHeight()
Alto del raster |
byte[][] |
getLineByte(int y)
|
int[][] |
getLineInt(int y)
|
short[][] |
getLineShort(int y)
|
int |
getWidth()
Ancho del raster |
void |
setElemInt(int x,
int y,
int[] px)
|
void |
setElemShort(int x,
int y,
int[] px)
|
int |
sizeof()
Obtiene el tamaño del buffer |
static java.lang.String |
typesToString(int type)
Convierte un tipo de dato a cadena |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RasterBuf(int dataType, int width, int height, int bandNr, java.awt.Point orig)
dataType
- Tipo de datowidth
- Anchoheight
- AltobandNr
- Bandaorig
- Method Detail |
public int getWidth()
IRaster
getWidth
in interface IRaster
public int getHeight()
IRaster
getHeight
in interface IRaster
public int getBandNr()
IRaster
getBandNr
in interface IRaster
public int getDataType()
IRaster
getDataType
in interface IRaster
DataBuffer
public int getDataSize()
public int sizeof()
public byte[][] getLineByte(int y)
public short[][] getLineShort(int y)
public int[][] getLineInt(int y)
public void getElemShort(int x, int y, int[] px)
IRaster
getElemShort
in interface IRaster
x
- coordenada Xy
- coordenada Ypx
- Array de 4 elementos para las bandas de la imagen ARGBpublic void getElemInt(int x, int y, int[] px)
IRaster
getElemInt
in interface IRaster
x
- coordenada Xy
- coordenada Ypx
- Array de 4 elementos para las bandas de la imagen ARGBpublic void setElemShort(int x, int y, int[] px)
public void setElemInt(int x, int y, int[] px)
public int getElemInt(int x, int y, int band)
IRaster
getElemInt
in interface IRaster
x
- coordenada Xy
- coordenada Yband
- banda
public static java.lang.String typesToString(int type)
type
- Tipo de dato
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |