public class CMYKJPEGImageReader
extends javax.imageio.ImageReader
| Constructor and Description |
|---|
CMYKJPEGImageReader(javax.imageio.spi.ImageReaderSpi originatingProvider) |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
createRGBAImageFromRGBA(java.awt.image.Raster rgbaRaster,
java.awt.color.ICC_Profile rgbaProfile)
Creates a buffered image from a raster in the RGBA color space,
converting the colors to RGB using the provided CMYK ICC_Profile.
|
static java.awt.image.BufferedImage |
createRGBImageFromCMYK(java.awt.image.Raster cmykRaster,
java.awt.color.ICC_Profile cmykProfile)
Creates a buffered image from a raster in the CMYK color space,
converting the colors to RGB using the provided CMYK ICC_Profile.
|
static java.awt.image.BufferedImage |
createRGBImageFromInvertedYCCK(java.awt.image.Raster ycckRaster,
java.awt.color.ICC_Profile cmykProfile)
Creates a buffered image from a raster in the inverted YCCK color space,
converting the colors to RGB using the provided CMYK ICC_Profile.
|
static java.awt.image.BufferedImage |
createRGBImageFromRGB(java.awt.image.Raster rgbaRaster,
java.awt.color.ICC_Profile rgbaProfile) |
static java.awt.image.BufferedImage |
createRGBImageFromYCC(java.awt.image.Raster rgbaRaster,
java.awt.color.ICC_Profile rgbaProfile) |
static java.awt.image.BufferedImage |
createRGBImageFromYCCK(java.awt.image.Raster ycckRaster,
java.awt.color.ICC_Profile cmykProfile)
Creates a buffered image from a raster in the YCCK color space,
converting the colors to RGB using the provided CMYK ICC_Profile.
|
int |
getHeight(int imageIndex) |
javax.imageio.metadata.IIOMetadata |
getImageMetadata(int imageIndex) |
java.util.Iterator<javax.imageio.ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch) |
javax.imageio.metadata.IIOMetadata |
getStreamMetadata() |
int |
getWidth(int imageIndex) |
boolean |
isIgnoreICCProfile() |
boolean |
isYCCKInversed() |
static java.awt.image.BufferedImage |
read(javax.imageio.stream.ImageInputStream in,
boolean inverseYCCKColors,
boolean isIgnoreColorProfile) |
java.awt.image.BufferedImage |
read(int imageIndex,
javax.imageio.ImageReadParam param) |
static java.awt.image.BufferedImage |
readImageFromYCCorGray(javax.imageio.stream.ImageInputStream in)
Reads a JPEG image from the provided InputStream.
|
static java.awt.image.BufferedImage |
readRGBAImageFromRGBA(java.io.InputStream in,
java.awt.color.ICC_Profile rgbaProfile)
Reads a RGBA JPEG image from the provided InputStream, converting the
colors to RGBA using the provided RGBA ICC_Profile.
|
static java.awt.image.BufferedImage |
readRGBImageFromCMYK(java.io.InputStream in,
java.awt.color.ICC_Profile cmykProfile)
Reads a CMYK JPEG image from the provided InputStream, converting the
colors to RGB using the provided CMYK ICC_Profile.
|
static java.awt.image.BufferedImage |
readRGBImageFromInvertedYCCK(java.io.InputStream in,
java.awt.color.ICC_Profile cmykProfile)
Reads an inverted-YCCK JPEG image from the provided InputStream,
converting the colors to RGB using the provided CMYK ICC_Profile.
|
static java.awt.image.BufferedImage |
readRGBImageFromRGB(java.io.InputStream in,
java.awt.color.ICC_Profile rgbaProfile) |
static java.awt.image.BufferedImage |
readRGBImageFromYCC(java.io.InputStream in,
java.awt.color.ICC_Profile rgbaProfile) |
static java.awt.image.BufferedImage |
readRGBImageFromYCCK(java.io.InputStream in,
java.awt.color.ICC_Profile cmykProfile)
Reads a YCCK JPEG image from the provided InputStream, converting the
colors to RGB using the provided CMYK ICC_Profile.
|
void |
setIgnoreICCProfile(boolean newValue) |
void |
setYCCKInversed(boolean newValue) |
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setInput, setLocalepublic CMYKJPEGImageReader(javax.imageio.spi.ImageReaderSpi originatingProvider)
public int getNumImages(boolean allowSearch)
throws java.io.IOException
getNumImages in class javax.imageio.ImageReaderjava.io.IOExceptionpublic int getWidth(int imageIndex)
throws java.io.IOException
getWidth in class javax.imageio.ImageReaderjava.io.IOExceptionpublic int getHeight(int imageIndex)
throws java.io.IOException
getHeight in class javax.imageio.ImageReaderjava.io.IOExceptionpublic java.util.Iterator<javax.imageio.ImageTypeSpecifier> getImageTypes(int imageIndex)
throws java.io.IOException
getImageTypes in class javax.imageio.ImageReaderjava.io.IOExceptionpublic javax.imageio.metadata.IIOMetadata getStreamMetadata()
throws java.io.IOException
getStreamMetadata in class javax.imageio.ImageReaderjava.io.IOExceptionpublic javax.imageio.metadata.IIOMetadata getImageMetadata(int imageIndex)
throws java.io.IOException
getImageMetadata in class javax.imageio.ImageReaderjava.io.IOExceptionpublic java.awt.image.BufferedImage read(int imageIndex,
javax.imageio.ImageReadParam param)
throws java.io.IOException
read in class javax.imageio.ImageReaderjava.io.IOExceptionpublic boolean isYCCKInversed()
public void setYCCKInversed(boolean newValue)
newValue - the new valuepublic boolean isIgnoreICCProfile()
public void setIgnoreICCProfile(boolean newValue)
public static java.awt.image.BufferedImage read(javax.imageio.stream.ImageInputStream in,
boolean inverseYCCKColors,
boolean isIgnoreColorProfile)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage readRGBImageFromCMYK(java.io.InputStream in,
java.awt.color.ICC_Profile cmykProfile)
throws java.io.IOException
Use this method, if you have already determined that the input stream contains a CMYK JPEG image.
in - An InputStream, preferably an ImageInputStream, in the JPEG
File Interchange Format (JFIF).cmykProfile - An ICC_Profile for conversion from the CMYK color
space to the RGB color space. If this parameter is null, a default
profile is used.java.io.IOExceptionpublic static java.awt.image.BufferedImage readRGBAImageFromRGBA(java.io.InputStream in,
java.awt.color.ICC_Profile rgbaProfile)
throws java.io.IOException
Use this method, if you have already determined that the input stream contains a RGBA JPEG image.
in - An InputStream, preferably an ImageInputStream, in the JPEG
File Interchange Format (JFIF).rgbaProfile - An ICC_Profile for conversion from the RGBA color
space to the RGBA color space. If this parameter is null, a default
profile is used.java.io.IOExceptionpublic static java.awt.image.BufferedImage readRGBImageFromRGB(java.io.InputStream in,
java.awt.color.ICC_Profile rgbaProfile)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage readRGBImageFromYCC(java.io.InputStream in,
java.awt.color.ICC_Profile rgbaProfile)
throws java.io.IOException
java.io.IOExceptionpublic static java.awt.image.BufferedImage readRGBImageFromYCCK(java.io.InputStream in,
java.awt.color.ICC_Profile cmykProfile)
throws java.io.IOException
Use this method, if you have already determined that the input stream contains a YCCK JPEG image.
in - An InputStream, preferably an ImageInputStream, in the JPEG
File Interchange Format (JFIF).cmykProfile - An ICC_Profile for conversion from the CMYK color
space to the RGB color space. If this parameter is null, a default
profile is used.java.io.IOExceptionpublic static java.awt.image.BufferedImage readRGBImageFromInvertedYCCK(java.io.InputStream in,
java.awt.color.ICC_Profile cmykProfile)
throws java.io.IOException
Use this method, if you have already determined that the input stream contains an inverted-YCCK JPEG image.
in - An InputStream, preferably an ImageInputStream, in the JPEG
File Interchange Format (JFIF).cmykProfile - An ICC_Profile for conversion from the CMYK color
space to the RGB color space. If this parameter is null, a default
profile is used.java.io.IOExceptionpublic static java.awt.image.BufferedImage createRGBImageFromYCCK(java.awt.image.Raster ycckRaster,
java.awt.color.ICC_Profile cmykProfile)
ycckRaster - A raster with (at least) 4 bands of samples.cmykProfile - An ICC_Profile for conversion from the CMYK color
space to the RGB color space. If this parameter is null, a default
profile is used.NullPointerException.public static java.awt.image.BufferedImage createRGBImageFromInvertedYCCK(java.awt.image.Raster ycckRaster,
java.awt.color.ICC_Profile cmykProfile)
ycckRaster - A raster with (at least) 4 bands of samples.cmykProfile - An ICC_Profile for conversion from the CMYK color
space to the RGB color space. If this parameter is null, a default
profile is used.public static java.awt.image.BufferedImage createRGBImageFromCMYK(java.awt.image.Raster cmykRaster,
java.awt.color.ICC_Profile cmykProfile)
cmykRaster - A raster with (at least) 4 bands of samples.cmykProfile - An ICC_Profile for conversion from the CMYK color
space to the RGB color space. If this parameter is null, a default
profile is used.public static java.awt.image.BufferedImage createRGBAImageFromRGBA(java.awt.image.Raster rgbaRaster,
java.awt.color.ICC_Profile rgbaProfile)
rgbaRaster - A raster with (at least) 4 bands of samples.rgbaProfile - An ICC_Profile for conversion from the CMYK color
space to the RGB color space. If this parameter is null, a default
profile is used.public static java.awt.image.BufferedImage createRGBImageFromRGB(java.awt.image.Raster rgbaRaster,
java.awt.color.ICC_Profile rgbaProfile)
public static java.awt.image.BufferedImage createRGBImageFromYCC(java.awt.image.Raster rgbaRaster,
java.awt.color.ICC_Profile rgbaProfile)
public static java.awt.image.BufferedImage readImageFromYCCorGray(javax.imageio.stream.ImageInputStream in)
throws java.io.IOException
Use this method, if you have already determined that the input stream contains a YCC or Gray JPEG image.
in - An InputStream, preferably an ImageInputStream, in the JPEG
File Interchange Format (JFIF).java.io.IOException