public class LabColorSpace extends GenericColorSpace
cb, ce, fasterPNG| Constructor and Description |
|---|
LabColorSpace(float[] whitepoint,
float[] range) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convertIndexToRGB(byte[] index)
convert Index to RGB
|
BufferedImage |
dataToRGB(byte[] data,
int width,
int height)
convert LAB stream to RGB and return as an image
|
byte[] |
dataToRGBByteArray(byte[] data,
int w,
int h)
Lab to 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)
set color
|
void |
setColor(String[] number_values,
int items)
set color (in terms of rgb)
|
cleanupImage, cleanupRaster, clearCache, getAlternateColorSpace, getColor, getColorComponentCount, getColorSpace, getColorSpaceInstance, getID, getIndexedColorComponent, getIndexedMap, getIndexSize, getRawColorSpacePDFType, getRawValues, getXMLColorToken, initCMYKColorspace, invalidateCaching, isImageYCCK, isIndexConverted, isInvalid, JPEG2000ToImage, JPEG2000ToRGBImage, nonRGBJPEGToRGBImage, setAlternateColorSpace, setCIEValues, setColor, setGS, setIndex, setPattern, setPrintingpublic byte[] convertIndexToRGB(byte[] index)
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 byte[] dataToRGBByteArray(byte[] data,
int w,
int h)
dataToRGBByteArray in class GenericColorSpacepublic BufferedImage dataToRGB(byte[] data, int width, int height)
dataToRGB 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 GenericColorSpaceCopyright © 2017. All rights reserved.