|
|||||||||
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
public class 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, DEBUG, 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,
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. |
static boolean |
writeImage(String fileName,
GraphicsArea graphicsArea,
GISFrame gisFrame,
int width,
int height,
LSThread lsThread)
Writes out the given graphics area as an image file with the given dimensions. |
static boolean |
writeImage(String fileName,
GraphicsArea graphicsArea,
GISFrame gisFrame,
LSThread lsThread)
Writes out the given 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, LSThread lsThread)
.gfw
(GIF), .pgw
(PNG) or .jpw
(JPEG) file exists with the same file name, the image will be georeferenced
using the transformation data contained within it.
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 .jpeg
).
Default is ping.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.
public static boolean writeImage(String fileName, GraphicsArea graphicsArea, GISFrame gisFrame, LSThread lsThread)
fileName
- Name of the image file to create. File format will be based on file name
extension (.png
, .gif
or .jpeg
).
Default is ping.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.
public static boolean writeImage(String fileName, GraphicsArea graphicsArea, GISFrame gisFrame, int width, int height, LSThread lsThread)
fileName
- Name of the image file to create. File format will be based on file name
extension (.png
, .gif
or .jpeg
).
Default is ping.gisFrame
- GUI holding the graphics area to write as an image.width
- Width of image to write. If 0 or negative, uses the width of the existing image.height
- Height of image to write. If 0 or negative, uses the height of the existing 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 |