|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.process.io.FileIO
jwo.landserf.process.io.ImageIO
Contains a collection of static methods for reading and writing image files.
Field Summary |
Fields inherited from class jwo.landserf.process.io.FileIO |
BIG_ENDIAN, bitsPerValue, byteOrder, errorMessage, filePointer, GATHER_INFO, lineNumber, LITTLE_ENDIAN, LOAD_ALL, LOAD_SELECTED, nullCode, substituteNull, useMultiplier, zMultiplier |
Constructor Summary | |
ImageIO()
There should be no need to call the constructor explicitly since all methods are static. |
Method Summary | |
static void |
main(String[] args)
|
static RasterMap |
readRaster(String fileName,
int width,
int height,
LSThread lsThread)
Reads a gif, png or jpeg image and creates a raster from it. |
static RasterMap |
readTIFF(String fileName,
GISFrame gisFrame,
LSThread lsThread)
Reads a TIFF format image file and creates a raster map from it. |
static boolean |
writeImage(String fileName,
GISFrame gisFrame,
LSThread lsThread)
Writes out the current graphics area as an image file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageIO()
Method Detail |
public static void main(String[] args)
public static RasterMap readRaster(String fileName, int width, int height, LSThread lsThread)
fileName
- Name of file to read.width
- Width of raster to create or 0 if image width to be used.height
- Height of raster to create or 0 if image height to be used.lsThread
- Thread that called this method (allows this to be interrupted).
If null, process cannot be interrupted.
public static RasterMap readTIFF(String fileName, GISFrame gisFrame, LSThread lsThread)
fileName
- Name of file to read.gisFrame
- GUI in which to report progress.lsThread
- Thread that called this method (allows this to be interrupted).
public static boolean writeImage(String fileName, GISFrame gisFrame, LSThread lsThread)
fileName
- Name of the image file to create. File format will be
based on file name extension (png, gif or jpg/jpeg). Default is png.gisFrame
- GUI holding the graphics area to write as an image.lsThread
- Thread that called this method (allowing it to be interrupted).
Can be null, in which case the method cannot be interrupted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |