Skip to main content

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

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
ColorSpace
ICCBasedColorSpace

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.