public class DeviceCMYKColorSpace extends GenericColorSpace
cb, ce, fasterPNG| Constructor and Description |
|---|
DeviceCMYKColorSpace() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
ensure next setColor will not match with old color as value may be out of
sync
|
static byte[] |
convertCMYK2RGBWithSimple(int w,
int h,
int pixelCount,
byte[] data) |
byte[] |
convertIndexToRGB(byte[] index)
convert Index to RGB
|
byte[] |
dataToRGBByteArray(byte[] data,
int w,
int h)
default RGB implementation just returns data
|
void |
invalidateCaching(int color) |
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 length)
convert CMYK to RGB as defined by Adobe (p354 Section 6.2.4 in Adobe 1.3
spec 2nd edition) and set value
|
void |
setColor(String[] number_values,
int items)
set CalRGB color (in terms of rgb)
|
cleanupImage, cleanupRaster, dataToRGB, getAlternateColorSpace, getColor, getColorComponentCount, getColorSpace, getColorSpaceInstance, getID, getIndexedColorComponent, getIndexedMap, getIndexSize, getRawColorSpacePDFType, getRawValues, getXMLColorToken, initCMYKColorspace, isImageYCCK, isIndexConverted, isInvalid, JPEG2000ToImage, nonRGBJPEGToRGBImage, setAlternateColorSpace, setCIEValues, setColor, setGS, setIndex, setPattern, setPrintingpublic void clearCache()
clearCache in class GenericColorSpacepublic void invalidateCaching(int color)
invalidateCaching in class GenericColorSpacepublic final void setColor(String[] number_values, int items)
setColor in class GenericColorSpacepublic final void setColor(float[] operand,
int length)
setColor in class GenericColorSpacepublic final 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 byte[] dataToRGBByteArray(byte[] data,
int w,
int h)
dataToRGBByteArray in class GenericColorSpacepublic static byte[] convertCMYK2RGBWithSimple(int w,
int h,
int pixelCount,
byte[] data)
public BufferedImage JPEG2000ToRGBImage(byte[] data, int w, int h, int pX, int pY, int d) throws PdfException
JPEG2000ToRGBImage in class GenericColorSpacePdfExceptionpublic final byte[] convertIndexToRGB(byte[] index)
convertIndexToRGB in class GenericColorSpaceCopyright © 2017. All rights reserved.