|
JAI ImageIO plugins for ImageJ - API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ij.jaiio.JAIWriter
Writes images to files using JAI image I/O codec . If writing to TIFF files, image resolution and Image/J's description string containing calibration information are also saved.
Constructor Summary | |
JAIWriter()
Constructor for the JAIWriter object |
Method Summary | |
java.lang.String |
getFormatName()
Gets the FormatName attribute of the JAIWriter object |
static java.lang.String[] |
getFormatNames()
Gets all supported format names. |
void |
setFormatName(java.lang.String formatName)
Sets the FormatName attribute of the JAIWriter object |
void |
setImageEncodeParam(non_com.media.jai.codec.ImageEncodeParam encodeParam)
|
void |
write(java.lang.String fileName,
ij.ImagePlus im)
Write image im to file fileName . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JAIWriter()
Method Detail |
public static java.lang.String[] getFormatNames()
public void setFormatName(java.lang.String formatName)
formatName
- The new FormatName valuepublic java.lang.String getFormatName()
public void write(java.lang.String fileName, ij.ImagePlus im) throws java.io.FileNotFoundException, java.io.IOException, java.lang.IllegalArgumentException
im
to file fileName
.
fileName
- Image output file name.im
- Image to save.
java.io.FileNotFoundException
- If the file exists but is a directory
rather than a regular file, does not exist but cannot be created, or
cannot be opened for any other reason.
java.io.IOException
- If there were error writing to file.
java.lang.IllegalArgumentException
- When trying to save having multiple
slices using file format different then TIFF.public void setImageEncodeParam(non_com.media.jai.codec.ImageEncodeParam encodeParam)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |