public class TiffWriter
extends loci.formats.FormatWriter
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
imageCounts
Image counts for each open series.
|
protected int |
lastOffset
The last offset written to.
|
protected java.io.BufferedOutputStream |
out
Current output stream.
|
| Constructor and Description |
|---|
TiffWriter() |
TiffWriter(java.lang.String format,
java.lang.String[] exts) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoStacks()
Reports whether the writer can save multiple images to a single file.
|
void |
close()
Closes currently open file(s) and frees allocated memory.
|
void |
saveImage(java.awt.Image image,
boolean last)
Saves the given image to the current file.
|
void |
saveImage(java.awt.Image image,
java.util.Hashtable ifd,
boolean last)
Saves the given image to the specified (possibly already open) file.
|
void |
saveImage(java.awt.Image image,
java.util.Hashtable ifd,
int series,
boolean lastInSeries,
boolean last)
Saves the given image to the specified series in the current file.
|
void |
saveImage(java.awt.Image image,
int series,
boolean lastInSeries,
boolean last)
Saves the given image to the given series in the current file.
|
void |
saveImage(java.lang.String id,
java.awt.Image image,
java.util.Hashtable ifd,
boolean last)
Deprecated.
Replaced by
saveImage(Image, Hashtable, boolean) |
canDoStacks, getColorModel, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPixelTypes, isSupportedType, isSupportedType, save, saveBytes, saveBytes, setColorModel, setCompression, setFramesPerSecond, setId, setMetadataRetrieveaddStatusListener, debug, getFormat, getStatusListeners, getSuffixes, isThisType, isThisType, removeStatusListener, setDebug, setDebugLevel, setId, status, status, status, trace, traceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected int lastOffset
protected java.io.BufferedOutputStream out
protected java.util.Vector imageCounts
public TiffWriter()
public TiffWriter(java.lang.String format,
java.lang.String[] exts)
public void saveImage(java.awt.Image image,
java.util.Hashtable ifd,
boolean last)
throws java.io.IOException,
loci.formats.FormatException
java.io.IOExceptionloci.formats.FormatExceptionpublic void saveImage(java.awt.Image image,
java.util.Hashtable ifd,
int series,
boolean lastInSeries,
boolean last)
throws java.io.IOException,
loci.formats.FormatException
java.io.IOExceptionloci.formats.FormatExceptionpublic void saveImage(java.awt.Image image,
boolean last)
throws loci.formats.FormatException,
java.io.IOException
loci.formats.IFormatWriterloci.formats.FormatExceptionjava.io.IOExceptionpublic void saveImage(java.awt.Image image,
int series,
boolean lastInSeries,
boolean last)
throws loci.formats.FormatException,
java.io.IOException
loci.formats.IFormatWritersaveImage in interface loci.formats.IFormatWritersaveImage in class loci.formats.FormatWriterloci.formats.FormatExceptionjava.io.IOExceptionpublic boolean canDoStacks()
loci.formats.IFormatWritercanDoStacks in interface loci.formats.IFormatWritercanDoStacks in class loci.formats.FormatWriterpublic void close()
throws java.io.IOException
loci.formats.IFormatHandlerjava.io.IOExceptionpublic void saveImage(java.lang.String id,
java.awt.Image image,
java.util.Hashtable ifd,
boolean last)
throws java.io.IOException,
loci.formats.FormatException
saveImage(Image, Hashtable, boolean)java.io.IOExceptionloci.formats.FormatException