ICCBasedColorSpace Class Documentation
class ICCBasedColorSpace : ColorSpaceNamespace:com::datalogics::PDFL
- Inherits from:
ColorSpace
Detailed Description
Works with the ICC color space. The International Color Consortium (ICC) developed the ICC color space in 1993 to serve as a universal standard for for printing or presenting content with digital devices, and across all operating systems and platforms.
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.
Uses types
Constructor & Destructor Documentation
ICCBasedColorSpace
ICCBasedColorSpace(PDFStream iccStream)Parameters
iccStream: PDFStreamstream containing the ICC profile
Create an ICC-based color stream.
ICCBasedColorSpace
ICCBasedColorSpace(PDFStream iccStream, int nComps)Parameters
iccStream: PDFStreamstream containing the ICC profile
nComps: intThe number of components (1, 3, or 4)
Create an ICC-based color stream.
Field Documentation
DEVICE_CMYK
static DEVICE_CMYKThe DeviceCMYK color space, representing cyan, magenta, yellow, and black components.
DEVICE_GRAY
static DEVICE_GRAYThe DeviceGray color space, representing a single grayscale component.
DEVICE_RGB
static DEVICE_RGBThe DeviceRGB color space, representing red, green, and blue components.
DEVICE_RGBA
static DEVICE_RGBAThe DeviceRGBA color space, representing red, green, blue, and alpha components.
LAB
static LABThe CIE-based L*a*b* color space.
LAB_A
static LAB_AThe CIE-based L*a*b* color space with an alpha component.
Member Function Documentation
delete
synchronized void delete(Boolean disposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized void delete()Returns:
synchronized voidequals
boolean equals(Object rhs)Parameters
rhs: Object
Returns:
booleanfinalize
void finalize()Returns:
voidgetAlternate
ColorSpace getAlternate()Returns:
ColorSpaceAn 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). The alternate space may be any valid color space (except a Pattern color space) that has the number of components specified by N. If this entry is omitted and the application does not understand the ICC profile data, the color space used is DeviceGray, DeviceRGB, or DeviceCMYK, depending on whether the value of N is 1, 3, or 4, respectively.
getName
String getName()Returns:
StringThe name of the color space. A named color space may be named something like DeviceRGB. More complicated color spaces may have a name like Indexed or ICCBased.
getNumComponents
int getNumComponents()Returns:
intThe number of color components.
The number of components in the color space. For example, DeviceGray has 1 component, DeviceRGB has 3, and DeviceCMYK has 4.
getPDFObject
PDFObject getPDFObject()Returns:
PDFObjectThe PDFObject associated with the color space.
Get the PDFObject associated with the color space. This may be a PDFName, PDFDict, PDFStream, or PDFArray.
getRange
java.util.List< Double > getRange()Returns:
java.util.List< Double >An array of 2 * NumComponents numbers [ min0 max0 min1 max1 ... ] specifying the minimum and maximum valid values of the corresponding color components. These values must match the information in the ICC profile. Default value: [ 0.0 1.0 0.0 1.0 ... ]
getStream
PDFStream getStream()Returns:
PDFStreamThe PDFStream containing the ICC-based data and other attributes.
setAlternate
void setAlternate(ColorSpace alternate)Parameters
alternate: ColorSpace
Returns:
voidAn 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). The alternate space may be any valid color space (except a Pattern color space) that has the number of components specified by N. If this entry is omitted and the application does not understand the ICC profile data, the color space used is DeviceGray, DeviceRGB, or DeviceCMYK, depending on whether the value of N is 1, 3, or 4, respectively.
setRange
void setRange(java.util.List< Double > range)Parameters
range: java.util.List< Double >
Returns:
voidAn array of 2 * NumComponents numbers [ min0 max0 min1 max1 ... ] specifying the minimum and maximum valid values of the corresponding color components. These values must match the information in the ICC profile. Default value: [ 0.0 1.0 0.0 1.0 ... ]
toString
String toString()Returns:
StringA string describing this ColorSpace.
Convert a ColorSpace to a string representation.