public class ICCColorSpace extends GenericColorSpace
cb, ce, fasterPNG| Constructor and Description |
|---|
ICCColorSpace(PdfObject colorSpace) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convertIndexToRGB(byte[] data)
convert Index to RGB
|
BufferedImage |
JPEG2000ToRGBImage(byte[] data,
int w,
int h,
int pX,
int pY,
int d)
convert byte[] datastream JPEG to an image in RGB
|
BufferedImage |
JPEGToRGBImage(byte[] data,
int w,
int h,
int pX,
int pY)
Convert DCT encoded image bytestream to sRGB
|
void |
setColor(float[] operand,
int size)
set color
|
void |
setColor(String[] number_values,
int items)
set color (in terms of rgb)
|
cleanupImage, cleanupRaster, clearCache, dataToRGB, dataToRGBByteArray, getAlternateColorSpace, getColor, getColorComponentCount, getColorSpace, getColorSpaceInstance, getID, getIndexedColorComponent, getIndexedMap, getIndexSize, getRawColorSpacePDFType, getRawValues, getXMLColorToken, initCMYKColorspace, invalidateCaching, isImageYCCK, isIndexConverted, isInvalid, JPEG2000ToImage, nonRGBJPEGToRGBImage, setAlternateColorSpace, setCIEValues, setColor, setGS, setIndex, setPattern, setPrintingpublic ICCColorSpace(PdfObject colorSpace)
public final void setColor(String[] number_values, int items)
setColor in class GenericColorSpacepublic final void setColor(float[] operand,
int size)
setColor in class GenericColorSpacepublic byte[] convertIndexToRGB(byte[] data)
convertIndexToRGB in class GenericColorSpacepublic BufferedImage JPEGToRGBImage(byte[] data, int w, int h, int pX, int pY)
Convert DCT encoded image bytestream to sRGB
It uses the internal Java classes and the Adobe icm to convert CMYK and YCbCr-Alpha - the data is still DCT encoded.
The Sun class JPEGDecodeParam.java is worth examining because it contains lots of interesting comments
I tried just using the new IOImage.read() but on type 3 images, all my clipping code stopped working so I am still using 1.3
JPEGToRGBImage in class GenericColorSpacepublic BufferedImage JPEG2000ToRGBImage(byte[] data, int w, int h, int pX, int pY, int d) throws PdfException
JPEG2000ToRGBImage in class GenericColorSpacePdfExceptionCopyright © 2017. All rights reserved.