|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.imageio.ImageReader
org.monte.media.jpeg.CMYKJPEGImageReader
public class CMYKJPEGImageReader
Reads a JPEG image with colors in the CMYK color space.
Field Summary |
---|
Fields inherited from class javax.imageio.ImageReader |
---|
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales |
Constructor Summary | |
---|---|
CMYKJPEGImageReader(ImageReaderSpi originatingProvider)
|
Method Summary | |
---|---|
static BufferedImage |
createRGBAImageFromRGBA(Raster rgbaRaster,
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 BufferedImage |
createRGBImageFromCMYK(Raster cmykRaster,
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 BufferedImage |
createRGBImageFromInvertedYCCK(Raster ycckRaster,
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 BufferedImage |
createRGBImageFromYCCK(Raster ycckRaster,
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)
|
IIOMetadata |
getImageMetadata(int imageIndex)
|
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex)
|
int |
getNumImages(boolean allowSearch)
|
IIOMetadata |
getStreamMetadata()
|
int |
getWidth(int imageIndex)
|
boolean |
isYCCKInversed()
|
static BufferedImage |
read(ImageInputStream in,
boolean inverseYCCKColors)
|
BufferedImage |
read(int imageIndex,
ImageReadParam param)
|
static BufferedImage |
readImageFromYUVorGray(ImageInputStream in)
Reads a JPEG image from the provided InputStream. |
static BufferedImage |
readRGBAImageFromRGBA(InputStream in,
ICC_Profile rgbaProfile)
Reads a RGBA JPEG image from the provided InputStream, converting the colors to RGBA using the provided RGBA ICC_Profile. |
static BufferedImage |
readRGBImageFromCMYK(InputStream in,
ICC_Profile cmykProfile)
Reads a CMYK JPEG image from the provided InputStream, converting the colors to RGB using the provided CMYK ICC_Profile. |
static BufferedImage |
readRGBImageFromInvertedYCCK(InputStream in,
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 BufferedImage |
readRGBImageFromYCCK(InputStream in,
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMYKJPEGImageReader(ImageReaderSpi originatingProvider)
Method Detail |
---|
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
public boolean isYCCKInversed()
public void setYCCKInversed(boolean newValue)
newValue
- the new valuepublic static BufferedImage read(ImageInputStream in, boolean inverseYCCKColors) throws IOException
IOException
public static BufferedImage readRGBImageFromCMYK(InputStream in, ICC_Profile cmykProfile) throws 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.
IOException
public static BufferedImage readRGBAImageFromRGBA(InputStream in, ICC_Profile rgbaProfile) throws 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.
IOException
public static BufferedImage readRGBImageFromYCCK(InputStream in, ICC_Profile cmykProfile) throws 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.
IOException
public static BufferedImage readRGBImageFromInvertedYCCK(InputStream in, ICC_Profile cmykProfile) throws 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.
IOException
public static BufferedImage createRGBImageFromYCCK(Raster ycckRaster, 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 BufferedImage createRGBImageFromInvertedYCCK(Raster ycckRaster, 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 BufferedImage createRGBImageFromCMYK(Raster cmykRaster, 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 BufferedImage createRGBAImageFromRGBA(Raster rgbaRaster, 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 BufferedImage readImageFromYUVorGray(ImageInputStream in) throws 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).
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |