public class JavaWriter extends FormatWriter
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, sequential, series, validBitsCOMPRESSION_SUFFIXES, currentId, format, LOGGER, suffixes| Constructor and Description |
|---|
JavaWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoStacks()
Reports whether the writer can save multiple images to a single file.
|
void |
close() |
int[] |
getPixelTypes(java.lang.String codec)
Gets the supported pixel types for the given codec.
|
void |
saveBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Saves the given image tile to the current series in the current file.
|
void |
setId(java.lang.String id)
Sets the current file name.
|
protected void |
writeFooter() |
protected void |
writeHeader() |
protected void |
writePlane(java.lang.String varName,
byte[] array,
int w,
int h) |
protected void |
writePlane(java.lang.String varName,
double[] array,
int w,
int h) |
protected void |
writePlane(java.lang.String varName,
float[] array,
int w,
int h) |
protected void |
writePlane(java.lang.String varName,
int[] array,
int w,
int h) |
protected void |
writePlane(java.lang.String varName,
long[] array,
int w,
int h) |
protected void |
writePlane(java.lang.String varName,
short[] array,
int w,
int h) |
changeOutputFile, checkParams, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPlaneCount, getSamplesPerPixel, getSeries, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setInterleaved, setMetadataRetrieve, setSeries, setValidBitsPerPixel, setWriteSequentiallycheckSuffix, checkSuffix, getFormat, getNativeDataType, getSuffixes, isThisTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, getNativeDataType, getSuffixes, isThisTypepublic void saveBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
throws FormatException,
java.io.IOException
IFormatWriterno - the image index within the current file, starting from 0.buf - the byte array that represents the image tile.x - the X coordinate of the upper-left corner of the image tile.y - the Y coordinate of the upper-left corner of the image tile.w - the width (in pixels) of the image tile.h - the height (in pixels) of the image tile.FormatException - if one of the parameters is invalid.java.io.IOException - if there was a problem writing to the file.IFormatWriter.saveBytes(int, byte[], int, int, int, int)public boolean canDoStacks()
IFormatWritercanDoStacks in interface IFormatWritercanDoStacks in class FormatWriterpublic int[] getPixelTypes(java.lang.String codec)
IFormatWritergetPixelTypes in interface IFormatWritergetPixelTypes in class FormatWriterpublic void setId(java.lang.String id)
throws FormatException,
java.io.IOException
IFormatHandlersetId in interface IFormatHandlersetId in class FormatWriterFormatExceptionjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class FormatWriterjava.io.IOExceptionprotected void writeHeader()
throws java.io.IOException
java.io.IOExceptionprotected void writePlane(java.lang.String varName,
byte[] array,
int w,
int h)
throws java.io.IOException
java.io.IOExceptionprotected void writePlane(java.lang.String varName,
short[] array,
int w,
int h)
throws java.io.IOException
java.io.IOExceptionprotected void writePlane(java.lang.String varName,
int[] array,
int w,
int h)
throws java.io.IOException
java.io.IOExceptionprotected void writePlane(java.lang.String varName,
long[] array,
int w,
int h)
throws java.io.IOException
java.io.IOExceptionprotected void writePlane(java.lang.String varName,
float[] array,
int w,
int h)
throws java.io.IOException
java.io.IOExceptionprotected void writePlane(java.lang.String varName,
double[] array,
int w,
int h)
throws java.io.IOException
java.io.IOExceptionprotected void writeFooter()
throws java.io.IOException
java.io.IOExceptionCopyright © 2014 Open Microscopy Environment