ICCBasedColorSpace Class
An ICC-based color space.
Declaration
public class ICCBasedColorSpace extends ColorSpace
Remarks
An ICC-based color space uses an ICC color profile to define how color component values map to device-independent colors. You can specify an alternate color space that PDF viewers use when the ICC profile is unavailable.
Inherited Members
Inheritance
ICCBasedColorSpace(int componentsCount, byte[] data)
Initializes a new ICC-based color space.
Declaration
public ICCBasedColorSpace(int componentsCount, byte[] data)
Parameters
| Name | Type | Description |
|---|---|---|
| componentsCount | int | The number of color components defined by the ICC profile. |
| data | byte[] | A byte array that contains the ICC profile data. |
Methods
getAlternate() Method
Returns the alternate color space.
Declaration
public ColorSpace getAlternate()
Returns
| Type | Description |
|---|---|
| ColorSpace | The alternate color space. |
getComponentsCount() Method
Returns the number of color components defined by the ICC profile.
Declaration
public int getComponentsCount()
Returns
| Type | Description |
|---|---|
| int | The number of color components. |
getData() Method
Returns the ICC profile data.
Declaration
public byte[] getData()
Returns
| Type | Description |
|---|---|
| byte[] | A byte array that contains the ICC profile. |
setAlternate(ColorSpace value) Method
Sets the alternate color space.
Declaration
public void setAlternate(ColorSpace value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ColorSpace | The alternate color space. |
Remarks
PDF viewers can use the alternate color space if they cannot process the embedded ICC profile.
setData(byte[] value) Method
Sets the ICC profile data.
Declaration
public void setData(byte[] value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | byte[] | A byte array that contains the ICC profile. |