public class JPEG2000Writer extends FormatWriter
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, resolution, resolutionData, sequential, series, validBitsCOMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes| Constructor and Description | 
|---|
| JPEG2000Writer()Creates a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canDoStacks()Overridden to indicate that stacks are not supported. | 
| byte[] | compressBuffer(int no,
              byte[] buf,
              int x,
              int y,
              int w,
              int h)Compresses the buffer. | 
| int[] | getPixelTypes(java.lang.String codec)Overridden to return the formats supported by the writer. | 
| 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. | 
changeOutputFile, checkParams, close, createOutputStream, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPlaneCount, getPlaneCount, getResolution, getResolutionCount, getResolutions, getSamplesPerPixel, getSamplesPerPixel, getSeries, getSizeX, getSizeY, getTileSizeX, getTileSizeY, hasResolutions, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setId, setInterleaved, setMetadataRetrieve, setResolution, setResolutions, setSeries, setTileSizeX, setTileSizeY, setValidBitsPerPixel, setWriteSequentiallycheckSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, isThisType, setMetadataOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, getNativeDataType, getSuffixes, isThisTypegetMetadataOptions, getSupportedMetadataLevels, setMetadataOptionspublic 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 byte[] compressBuffer(int no,
                             byte[] buf,
                             int x,
                             int y,
                             int w,
                             int h)
                      throws FormatException,
                             java.io.IOException
no - 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.public boolean canDoStacks()
canDoStacks in interface IFormatWritercanDoStacks in class FormatWriterIFormatWriter.canDoStacks()public int[] getPixelTypes(java.lang.String codec)
getPixelTypes in interface IFormatWritergetPixelTypes in class FormatWriterIFormatWriter.getPixelTypes(String)Copyright © 2019 Open Microscopy Environment