public class ICCBasedColorSpace extends ColorSpace
The ICC color standard applies regardless the hardware or software involved, and is used to make sure that color images and text appear properly on a wide variety of platforms.
DEVICE_CMYK, DEVICE_GRAY, DEVICE_RGB, DEVICE_RGBA, LAB, LAB_A| Constructor and Description |
|---|
ICCBasedColorSpace(PDFStream iccStream)
Create an ICC-based color stream.
|
ICCBasedColorSpace(PDFStream iccStream,
int nComps)
Create an ICC-based color stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
ColorSpace |
getAlternate()
An alternate color space to be used in case the one specified in the stream data is not supported (for example, by applications designed for earlier versions of PDF).
|
java.util.List<java.lang.Double> |
getRange()
An array of 2 * NumComponents numbers [ min0 max0 min1 max1 ...
|
PDFStream |
getStream()
The PDFStream containing the ICC-based data and other attributes.
|
void |
setAlternate(ColorSpace alternate)
An alternate color space to be used in case the one specified in the stream data is not supported (for example, by applications designed for earlier versions of PDF).
|
void |
setRange(java.util.List<java.lang.Double> range)
An array of 2 * NumComponents numbers [ min0 max0 min1 max1 ...
|
equals, getName, getNumComponents, getPDFObject, toStringpublic ICCBasedColorSpace(PDFStream iccStream, int nComps)
iccStream - stream containing the ICC profilenComps - The number of components (1, 3, or 4)public ICCBasedColorSpace(PDFStream iccStream)
iccStream - stream containing the ICC profilepublic void delete()
delete in class ColorSpacepublic ColorSpace getAlternate()
public void setAlternate(ColorSpace alternate)
public java.util.List<java.lang.Double> getRange()
public void setRange(java.util.List<java.lang.Double> range)
public PDFStream getStream()