JAI ImageIO plugins for ImageJ - API

net.sf.ij.jaiio
Class JAIWriter

java.lang.Object
  extended bynet.sf.ij.jaiio.JAIWriter

public class JAIWriter
extends java.lang.Object

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.

Version:
$Revision: 1.6 $
Author:
Jarek Sacha

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

JAIWriter

public JAIWriter()
Constructor for the JAIWriter object

Method Detail

getFormatNames

public static java.lang.String[] getFormatNames()
Gets all supported format names.

Returns:
The FormatNames value

setFormatName

public void setFormatName(java.lang.String formatName)
Sets the FormatName attribute of the JAIWriter object

Parameters:
formatName - The new FormatName value

getFormatName

public java.lang.String getFormatName()
Gets the FormatName attribute of the JAIWriter object

Returns:
The FormatName value

write

public void write(java.lang.String fileName,
                  ij.ImagePlus im)
           throws java.io.FileNotFoundException,
                  java.io.IOException,
                  java.lang.IllegalArgumentException
Write image im to file fileName.

Parameters:
fileName - Image output file name.
im - Image to save.
Throws:
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.

setImageEncodeParam

public void setImageEncodeParam(non_com.media.jai.codec.ImageEncodeParam encodeParam)

SourceForge.net Logo