|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.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 RasterMap |
readRaster(String fileName,
int width,
int height)
Reads a gif, png or jpeg image and creates a raster from it. |
static RasterMap |
readTIFF(String fileName,
GISFrame gisFrame)
Reads a TIFF format image file and creates a raster map from it. |
static boolean |
writeImage(String fileName,
GISFrame gisFrame)
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 RasterMap readRaster(String fileName, int width, int height)
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.
public static RasterMap readTIFF(String fileName, GISFrame gisFrame)
fileName
- Name of file to read.gisFrame
- GUI in which to report progress.
public static boolean writeImage(String fileName, GISFrame gisFrame)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |