|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.c3d.image.hips.HIPS
Static utility functions allowing the use of HIPS2 images in Java programs
Constructor Summary | |
HIPS()
|
Method Summary | |
static java.awt.Image |
AWTImage(HipsImage img,
double scale,
int index)
|
static HipsByteImage |
concat(HipsByteImage[] images)
Concatenate some images together |
static HipsImage |
filter(HipsImage img,
java.lang.String s)
Filter a HIPS image using a standard executable filter run as a separate process. |
static HipsImage |
loadImage(java.awt.Image img)
Create a HIPS image from an AWT image. |
static HipsImage |
loadImage(java.io.InputStream in)
Load a HIPS image from an input stream. |
static HipsImage |
loadImage(java.lang.String fileName)
Load a HIPS image from a file. |
static HipsImage |
loadTIF(java.lang.String fileName)
|
static void |
writeImage(HipsImage hdr,
java.io.OutputStream out)
Save a HIPS image to an OutputStream |
static void |
writeImage(HipsImage hdr,
java.lang.String fileName)
Save a HIPS image to file. |
static void |
writeImage(java.awt.Image img,
java.lang.String fileName)
Save an AWT image to a file |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public HIPS()
Method Detail |
public static HipsImage loadImage(java.lang.String fileName) throws HipsException, java.io.IOException
fileName
- The local name for the filepublic static HipsImage loadImage(java.io.InputStream in) throws HipsException, java.io.IOException
in
- The input data streampublic static HipsImage loadTIF(java.lang.String fileName)
public static HipsImage loadImage(java.awt.Image img) throws HipsException, java.io.IOException
public static void writeImage(HipsImage hdr, java.lang.String fileName) throws java.io.IOException
public static void writeImage(HipsImage hdr, java.io.OutputStream out) throws java.io.IOException
public static void writeImage(java.awt.Image img, java.lang.String fileName) throws HipsException, java.io.IOException
public static HipsImage filter(HipsImage img, java.lang.String s)
hdr
- The HIPS header. This should have data attached.s
- The filter to be executed, including the command line arguments
to run the filter. The arguments are parsed using StringTokenizer
so make sure that this will work, otherwise use the multi-argument
version of filter.public static java.awt.Image AWTImage(HipsImage img, double scale, int index)
public static HipsByteImage concat(HipsByteImage[] images)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |