| java.lang.Object javax.imageio.ImageWriter com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageWriter
J2KImageWriter | public class J2KImageWriter extends ImageWriter (Code) | | The Java Image IO plugin writer for encoding a RenderedImage into
a JPEG 2000 part 1 file (JP2) format.
This writer has the capability to (1) Losslessly encode
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 .
See Also: com.sun.media.imageio.plugins.J2KImageWriteParam |
Field Summary | |
public static String | WRITE_ABORTED When the writing is aborted, RenderedImageSrc throws a
RuntimeException . |
WRITE_ABORTED | public static String WRITE_ABORTED(Code) | | When the writing is aborted, RenderedImageSrc throws a
RuntimeException .
|
J2KImageWriter | public J2KImageWriter(ImageWriterSpi originator)(Code) | | Constructs J2KImageWriter based on the provided
ImageWriterSpi .
|
abort | public synchronized void abort()(Code) | | |
canWriteRasters | public boolean canWriteRasters()(Code) | | |
getAbortRequest | public boolean getAbortRequest()(Code) | | This method wraps the protected method abortRequested
to allow the abortions be monitored by J2KRenderedImage .
|
processImageProgressWrapper | public void processImageProgressWrapper(float percentageDone)(Code) | | Wrapper for the protected method processImageProgress
So it can be access from the classes which are not in
ImageWriter hierachy.
|
reset | public void reset()(Code) | | |
Methods inherited from javax.imageio.ImageWriter | public synchronized void abort()(Code)(Java Doc) protected synchronized boolean abortRequested()(Code)(Java Doc) public void addIIOWriteProgressListener(IIOWriteProgressListener listener)(Code)(Java Doc) public void addIIOWriteWarningListener(IIOWriteWarningListener listener)(Code)(Java Doc) public boolean canInsertEmpty(int imageIndex) throws IOException(Code)(Java Doc) public boolean canInsertImage(int imageIndex) throws IOException(Code)(Java Doc) public boolean canRemoveImage(int imageIndex) throws IOException(Code)(Java Doc) public boolean canReplaceImageMetadata(int imageIndex) throws IOException(Code)(Java Doc) public boolean canReplacePixels(int imageIndex) throws IOException(Code)(Java Doc) public boolean canReplaceStreamMetadata() throws IOException(Code)(Java Doc) public boolean canWriteEmpty() throws IOException(Code)(Java Doc) public boolean canWriteRasters()(Code)(Java Doc) public boolean canWriteSequence()(Code)(Java Doc) protected synchronized void clearAbortRequest()(Code)(Java Doc) abstract public IIOMetadata convertImageMetadata(IIOMetadata inData, ImageTypeSpecifier imageType, ImageWriteParam param)(Code)(Java Doc) abstract public IIOMetadata convertStreamMetadata(IIOMetadata inData, ImageWriteParam param)(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void endInsertEmpty() throws IOException(Code)(Java Doc) public void endReplacePixels() throws IOException(Code)(Java Doc) public void endWriteEmpty() throws IOException(Code)(Java Doc) public void endWriteSequence() throws IOException(Code)(Java Doc) public Locale[] getAvailableLocales()(Code)(Java Doc) abstract public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier imageType, ImageWriteParam param)(Code)(Java Doc) abstract public IIOMetadata getDefaultStreamMetadata(ImageWriteParam param)(Code)(Java Doc) public ImageWriteParam getDefaultWriteParam()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public int getNumThumbnailsSupported(ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata)(Code)(Java Doc) public ImageWriterSpi getOriginatingProvider()(Code)(Java Doc) public Object getOutput()(Code)(Java Doc) public Dimension[] getPreferredThumbnailSizes(ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata)(Code)(Java Doc) public void prepareInsertEmpty(int imageIndex, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List<? extends BufferedImage> thumbnails, ImageWriteParam param) throws IOException(Code)(Java Doc) public void prepareReplacePixels(int imageIndex, Rectangle region) throws IOException(Code)(Java Doc) public void prepareWriteEmpty(IIOMetadata streamMetadata, ImageTypeSpecifier imageType, int width, int height, IIOMetadata imageMetadata, List<? extends BufferedImage> thumbnails, ImageWriteParam param) throws IOException(Code)(Java Doc) public void prepareWriteSequence(IIOMetadata streamMetadata) throws IOException(Code)(Java Doc) protected void processImageComplete()(Code)(Java Doc) protected void processImageProgress(float percentageDone)(Code)(Java Doc) protected void processImageStarted(int imageIndex)(Code)(Java Doc) protected void processThumbnailComplete()(Code)(Java Doc) protected void processThumbnailProgress(float percentageDone)(Code)(Java Doc) protected void processThumbnailStarted(int imageIndex, int thumbnailIndex)(Code)(Java Doc) protected void processWarningOccurred(int imageIndex, String warning)(Code)(Java Doc) protected void processWarningOccurred(int imageIndex, String baseName, String keyword)(Code)(Java Doc) protected void processWriteAborted()(Code)(Java Doc) public void removeAllIIOWriteProgressListeners()(Code)(Java Doc) public void removeAllIIOWriteWarningListeners()(Code)(Java Doc) public void removeIIOWriteProgressListener(IIOWriteProgressListener listener)(Code)(Java Doc) public void removeIIOWriteWarningListener(IIOWriteWarningListener listener)(Code)(Java Doc) public void removeImage(int imageIndex) throws IOException(Code)(Java Doc) public void replaceImageMetadata(int imageIndex, IIOMetadata imageMetadata) throws IOException(Code)(Java Doc) public void replacePixels(RenderedImage image, ImageWriteParam param) throws IOException(Code)(Java Doc) public void replacePixels(Raster raster, ImageWriteParam param) throws IOException(Code)(Java Doc) public void replaceStreamMetadata(IIOMetadata streamMetadata) throws IOException(Code)(Java Doc) public void reset()(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setOutput(Object output)(Code)(Java Doc) abstract public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) throws IOException(Code)(Java Doc) public void write(IIOImage image) throws IOException(Code)(Java Doc) public void write(RenderedImage image) throws IOException(Code)(Java Doc) public void writeInsert(int imageIndex, IIOImage image, ImageWriteParam param) throws IOException(Code)(Java Doc) public void writeToSequence(IIOImage image, ImageWriteParam param) throws IOException(Code)(Java Doc)
|
|
|