public class JAIIIOServiceImpl extends org.scijava.service.AbstractService implements JAIIIOService
| Constructor and Description |
|---|
JAIIIOServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
readImage(InputStream in)
Reads an image using JAI Image I/O using the JPEG 2000 codec.
|
BufferedImage |
readImage(InputStream in,
JPEG2000CodecOptions options)
Reads an image using JAI Image I/O using the JPEG 2000 codec.
|
Raster |
readRaster(InputStream in)
Reads an image into a raster using JAI Image I/O using the JPEG 2000 codec.
|
Raster |
readRaster(InputStream in,
JPEG2000CodecOptions options)
Reads an image into a raster using JAI Image I/O using the JPEG 2000 codec.
|
void |
writeImage(OutputStream out,
BufferedImage img,
boolean lossless,
int[] codeBlockSize,
double quality)
Deprecated.
use JAIIIOService#writeImage(OutputStream, BufferedImage,
JPEG2000CodecOptions)
|
void |
writeImage(OutputStream out,
BufferedImage img,
JPEG2000CodecOptions options)
Writes an image using JAI Image I/O using the JPEG 2000 codec.
|
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic void writeImage(OutputStream out, BufferedImage img, JPEG2000CodecOptions options) throws IOException, ServiceException
JAIIIOServicewriteImage in interface JAIIIOServiceout - Target output stream.img - Source buffered image.options - Options for the JPEG 2000 codec.IOException - Thrown if there is an error reading from or writing to
one of the target streams / buffers.ServiceException - Thrown if there is an error initializing or
interacting with the dependencies of the service.@Deprecated public void writeImage(OutputStream out, BufferedImage img, boolean lossless, int[] codeBlockSize, double quality) throws IOException, ServiceException
JAIIIOServicewriteImage in interface JAIIIOServiceout - Target output stream.img - Source buffered image.lossless - Whether or not to compress losslessly.codeBlockSize - JPEG 2000 code block size.quality - JPEG 2000 quality level.IOException - Thrown if there is an error reading from or writing to
one of the target streams / buffers.ServiceException - Thrown if there is an error initializing or
interacting with the dependencies of the service.public BufferedImage readImage(InputStream in, JPEG2000CodecOptions options) throws IOException, ServiceException
JAIIIOServicereadImage in interface JAIIIOServicein - Target input stream.options - Options for the JPEG 2000 codec.IOException - Thrown if there is an error reading from or writing to
one of the target streams / buffers.ServiceException - Thrown if there is an error initializing or
interacting with the dependencies of the service.public BufferedImage readImage(InputStream in) throws IOException, ServiceException
JAIIIOServicereadImage in interface JAIIIOServicein - Target input stream.IOException - Thrown if there is an error reading from or writing to
one of the target streams / buffers.ServiceException - Thrown if there is an error initializing or
interacting with the dependencies of the service.JAIIIOService.readImage(InputStream, JPEG2000CodecOptions)public Raster readRaster(InputStream in, JPEG2000CodecOptions options) throws IOException, ServiceException
JAIIIOServicereadRaster in interface JAIIIOServicein - Target input stream.options - Options for the JPEG 2000 codec.IOException - Thrown if there is an error reading from or writing to
one of the target streams / buffers.ServiceException - Thrown if there is an error initializing or
interacting with the dependencies of the service.public Raster readRaster(InputStream in) throws IOException, ServiceException
JAIIIOServicereadRaster in interface JAIIIOServicein - Target input stream.IOException - Thrown if there is an error reading from or writing to
one of the target streams / buffers.ServiceException - Thrown if there is an error initializing or
interacting with the dependencies of the service.JAIIIOService.readRaster(InputStream, JPEG2000CodecOptions)Copyright © 2011–2026 SCIFIO. All rights reserved.