public class ElevationTiffImage extends Object implements ElevationImage
| Constructor and Description |
|---|
ElevationTiffImage(mil.nga.tiff.FileDirectory directory)
Constructor, used for writing a TIFF
|
ElevationTiffImage(TileRow tileRow)
Constructor, used for reading a TIFF
|
| Modifier and Type | Method and Description |
|---|---|
mil.nga.tiff.FileDirectory |
getDirectory()
Get the file directory
|
int |
getHeight() |
byte[] |
getImageBytes()
Get the image bytes
|
float |
getPixel(int x,
int y)
Get the pixel at the coordinate
|
mil.nga.tiff.Rasters |
getRasters()
Get the rasters, read if needed
|
int |
getWidth() |
void |
writeTiff()
Write the TIFF file to the image bytes
|
public ElevationTiffImage(TileRow tileRow)
tileRow - tile rowpublic ElevationTiffImage(mil.nga.tiff.FileDirectory directory)
directory - file directorypublic byte[] getImageBytes()
public mil.nga.tiff.FileDirectory getDirectory()
public mil.nga.tiff.Rasters getRasters()
public int getWidth()
getWidth in interface ElevationImagepublic int getHeight()
getHeight in interface ElevationImagepublic void writeTiff()
public float getPixel(int x,
int y)
x - x coordinatey - y coordinate