public class J2KImageWriter
extends javax.imageio.ImageWriter
RenderedImage
s with an IndexColorModel
(for
example, bi-level or color indexed images). (2) Losslessly or lossy encode
RenderedImage
with a byte, short, ushort or integer types with
band number upto 16384. (3) Encode an image with alpha channel.
(4) Write the provided metadata into the code stream. It also can encode
a raster wrapped in the provided IIOImage
.
The encoding process may re-tile image, clip, subsample, and select bands
using the parameters specified in the ImageWriteParam
.com.sun.media.imageio.plugins.J2KImageWriteParam
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WRITE_ABORTED
When the writing is aborted,
RenderedImageSrc throws a
RuntimeException . |
Constructor and Description |
---|
J2KImageWriter(javax.imageio.spi.ImageWriterSpi originator)
Constructs
J2KImageWriter based on the provided
ImageWriterSpi . |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
boolean |
canWriteRasters() |
javax.imageio.metadata.IIOMetadata |
convertImageMetadata(javax.imageio.metadata.IIOMetadata inData,
javax.imageio.ImageTypeSpecifier imageType,
javax.imageio.ImageWriteParam param) |
javax.imageio.metadata.IIOMetadata |
convertStreamMetadata(javax.imageio.metadata.IIOMetadata inData,
javax.imageio.ImageWriteParam param) |
boolean |
getAbortRequest()
This method wraps the protected method
abortRequested
to allow the abortions be monitored by J2KRenderedImage . |
javax.imageio.metadata.IIOMetadata |
getDefaultImageMetadata(javax.imageio.ImageTypeSpecifier imageType,
javax.imageio.ImageWriteParam param) |
javax.imageio.metadata.IIOMetadata |
getDefaultStreamMetadata(javax.imageio.ImageWriteParam param) |
javax.imageio.ImageWriteParam |
getDefaultWriteParam() |
void |
processImageProgressWrapper(float percentageDone)
Wrapper for the protected method
processImageProgress
So it can be access from the classes which are not in
ImageWriter hierachy. |
void |
reset() |
void |
setOutput(java.lang.Object output) |
void |
write(javax.imageio.metadata.IIOMetadata streamMetadata,
javax.imageio.IIOImage image,
javax.imageio.ImageWriteParam param) |
abortRequested, addIIOWriteProgressListener, addIIOWriteWarningListener, canInsertEmpty, canInsertImage, canRemoveImage, canReplaceImageMetadata, canReplacePixels, canReplaceStreamMetadata, canWriteEmpty, canWriteSequence, clearAbortRequest, dispose, endInsertEmpty, endReplacePixels, endWriteEmpty, endWriteSequence, getAvailableLocales, getLocale, getNumThumbnailsSupported, getOriginatingProvider, getOutput, getPreferredThumbnailSizes, prepareInsertEmpty, prepareReplacePixels, prepareWriteEmpty, prepareWriteSequence, processImageComplete, processImageProgress, processImageStarted, processThumbnailComplete, processThumbnailProgress, processThumbnailStarted, processWarningOccurred, processWarningOccurred, processWriteAborted, removeAllIIOWriteProgressListeners, removeAllIIOWriteWarningListeners, removeIIOWriteProgressListener, removeIIOWriteWarningListener, removeImage, replaceImageMetadata, replacePixels, replacePixels, replaceStreamMetadata, setLocale, write, write, writeInsert, writeToSequence
public static java.lang.String WRITE_ABORTED
RenderedImageSrc
throws a
RuntimeException
.public J2KImageWriter(javax.imageio.spi.ImageWriterSpi originator)
J2KImageWriter
based on the provided
ImageWriterSpi
.public void processImageProgressWrapper(float percentageDone)
processImageProgress
So it can be access from the classes which are not in
ImageWriter
hierachy.public void setOutput(java.lang.Object output)
setOutput
in class javax.imageio.ImageWriter
public javax.imageio.ImageWriteParam getDefaultWriteParam()
getDefaultWriteParam
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata getDefaultStreamMetadata(javax.imageio.ImageWriteParam param)
getDefaultStreamMetadata
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata getDefaultImageMetadata(javax.imageio.ImageTypeSpecifier imageType, javax.imageio.ImageWriteParam param)
getDefaultImageMetadata
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata convertStreamMetadata(javax.imageio.metadata.IIOMetadata inData, javax.imageio.ImageWriteParam param)
convertStreamMetadata
in interface javax.imageio.ImageTranscoder
convertStreamMetadata
in class javax.imageio.ImageWriter
public javax.imageio.metadata.IIOMetadata convertImageMetadata(javax.imageio.metadata.IIOMetadata inData, javax.imageio.ImageTypeSpecifier imageType, javax.imageio.ImageWriteParam param)
convertImageMetadata
in interface javax.imageio.ImageTranscoder
convertImageMetadata
in class javax.imageio.ImageWriter
public boolean canWriteRasters()
canWriteRasters
in class javax.imageio.ImageWriter
public void write(javax.imageio.metadata.IIOMetadata streamMetadata, javax.imageio.IIOImage image, javax.imageio.ImageWriteParam param) throws java.io.IOException
write
in class javax.imageio.ImageWriter
java.io.IOException
public void abort()
abort
in class javax.imageio.ImageWriter
public void reset()
reset
in class javax.imageio.ImageWriter
public boolean getAbortRequest()
abortRequested
to allow the abortions be monitored by J2KRenderedImage
.Copyright © 2014 Open Microscopy Environment