public class CMYKJPEGImageReader
extends javax.imageio.ImageReader
Constructor and Description |
---|
CMYKJPEGImageReader(CMYKJPEGImageReaderSpi 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 |
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 |
isYCCKInversed() |
static java.awt.image.BufferedImage |
read(javax.imageio.stream.ImageInputStream in,
boolean inverseYCCKColors) |
java.awt.image.BufferedImage |
read(int imageIndex,
javax.imageio.ImageReadParam param) |
static java.awt.image.BufferedImage |
readImageFromYUVorGray(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 |
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 |
setYCCKInversed(boolean newValue) |
abort, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, dispose, getAspectRatio, getAvailableLocales, getDefaultReadParam, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setInput, setLocale
public CMYKJPEGImageReader(CMYKJPEGImageReaderSpi originatingProvider)
public int getNumImages(boolean allowSearch) throws java.io.IOException
getNumImages
in class javax.imageio.ImageReader
java.io.IOException
public int getWidth(int imageIndex) throws java.io.IOException
getWidth
in class javax.imageio.ImageReader
java.io.IOException
public int getHeight(int imageIndex) throws java.io.IOException
getHeight
in class javax.imageio.ImageReader
java.io.IOException
public java.util.Iterator<javax.imageio.ImageTypeSpecifier> getImageTypes(int imageIndex) throws java.io.IOException
getImageTypes
in class javax.imageio.ImageReader
java.io.IOException
public javax.imageio.metadata.IIOMetadata getStreamMetadata() throws java.io.IOException
getStreamMetadata
in class javax.imageio.ImageReader
java.io.IOException
public javax.imageio.metadata.IIOMetadata getImageMetadata(int imageIndex) throws java.io.IOException
getImageMetadata
in class javax.imageio.ImageReader
java.io.IOException
public java.awt.image.BufferedImage read(int imageIndex, javax.imageio.ImageReadParam param) throws java.io.IOException
read
in class javax.imageio.ImageReader
java.io.IOException
public boolean isYCCKInversed()
public void setYCCKInversed(boolean newValue)
newValue
- the new valuepublic static java.awt.image.BufferedImage read(javax.imageio.stream.ImageInputStream in, boolean inverseYCCKColors) throws java.io.IOException
java.io.IOException
public 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.IOException
public 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.IOException
public 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.IOException
public 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.IOException
public 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 readImageFromYUVorGray(javax.imageio.stream.ImageInputStream in) throws java.io.IOException
Use this method, if you have already determined that the input stream contains a YUV or Gray JPEG image.
in
- An InputStream, preferably an ImageInputStream, in the JPEG
File Interchange Format (JFIF).java.io.IOException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"