public class JPEGImageIO extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
static BufferedImage |
read(InputStream in)
Reads a JPEG image from the provided InputStream and convert it into a
color space which can be handled by Java2D (that is RGB or Gray in J2SE 5).
|
static BufferedImage |
read(InputStream in,
boolean inverseYCCKColors) |
static BufferedImage |
readImageFromYUVorGray(InputStream in)
Reads a JPEG image from the provided InputStream.
|
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.
|
public static BufferedImage read(InputStream in) throws IOException
in
- An InputStream in the JPEG File Interchange Format (JFIF).IOException
public static BufferedImage read(InputStream in, boolean inverseYCCKColors) throws IOException
IOException
public static BufferedImage readImageFromYUVorGray(InputStream 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
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 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.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.Copyright © 1999–2019 ViaOA. All rights reserved.