public abstract class ImageIOWriter extends FormatWriter
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
kind  | 
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, sequential, series, validBitsCOMPRESSION_SUFFIXES, currentId, format, LOGGER, suffixes| Constructor and Description | 
|---|
ImageIOWriter(String format,
             String[] suffixes,
             String kind)
Constructs an ImageIO-based writer with the given name, default suffixes
 and output type (e.g., png, jpeg). 
 | 
ImageIOWriter(String format,
             String suffix,
             String kind)
Constructs an ImageIO-based writer with the given name, default suffix
 and output type (e.g., png, jpeg). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Class<?> | 
getNativeDataType()
Returns the native data type of image planes for this reader, as returned
 by  
IFormatReader.openPlane(int, int, int, int, int) or IFormatWriter.savePlane(int, java.lang.Object). | 
int[] | 
getPixelTypes(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 | 
savePlane(int no,
         Object plane,
         int x,
         int y,
         int w,
         int h)
Saves the given image plane to the current series in the current file. 
 | 
canDoStacks, changeOutputFile, checkParams, close, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPlaneCount, getSamplesPerPixel, getSeries, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, saveBytes, saveBytes, savePlane, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setId, setInterleaved, setMetadataRetrieve, setSeries, setValidBitsPerPixel, setWriteSequentiallycheckSuffix, checkSuffix, getFormat, getSuffixes, isThisTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, getSuffixes, isThisTypeprotected String kind
public ImageIOWriter(String format, String suffix, String kind)
public void saveBytes(int no,
             byte[] buf,
             int x,
             int y,
             int w,
             int h)
               throws FormatException,
                      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.IOException - if there was a problem writing to the file.IFormatWriter.saveBytes(int, byte[], int, int, int, int)public void savePlane(int no,
             Object plane,
             int x,
             int y,
             int w,
             int h)
               throws FormatException,
                      IOException
IFormatWritersavePlane in interface IFormatWritersavePlane in class FormatWriterno - the image index within the current file, starting from 0.plane - the image plane.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.IOException - if there was a problem writing to the file.IFormatWriter.savePlane(int, Object, int, int, int, int)public int[] getPixelTypes(String codec)
IFormatWritergetPixelTypes in interface IFormatWritergetPixelTypes in class FormatWriterpublic Class<?> getNativeDataType()
IFormatHandlerIFormatReader.openPlane(int, int, int, int, int) or IFormatWriter.savePlane(int, java.lang.Object).
 For most readers this type will be a byte array; however, some readers
 call external APIs that work with other types such as
 BufferedImage.getNativeDataType in interface IFormatHandlergetNativeDataType in class FormatHandlerCopyright © 2014 Open Microscopy Environment