Skip to main content

IndexedColorSpace Class

A color space that maps index values to colors in a lookup table.

Declaration

public class IndexedColorSpace extends ColorSpace

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
IndexedColorSpace

IndexedColorSpace(ColorSpace baseColorSpace, int maxIndex, byte[] lookupTable)

Initializes a new instance of the IndexedColorSpace class with specified base color space, maximum index, and lookup table.

Declaration

public IndexedColorSpace(ColorSpace baseColorSpace, int maxIndex, byte[] lookupTable)

Parameters

Name Type Description
baseColorSpace ColorSpace

The base color space that defines the color components stored in the lookup table.

maxIndex int

The maximum valid color index.

lookupTable byte[]

The lookup table that contains color values.

Methods

getBaseColorSpace() Method

Returns the base color space used to interpret lookup table entries.

Declaration

public ColorSpace getBaseColorSpace()

Returns

Type Description
ColorSpace

The base color space.

getComponentsCount() Method

Returns the number of components in the indexed color space.

Declaration

public int getComponentsCount()

Returns

Type Description
int

The number of components in the indexed color space (1).

getLookupTable() Method

Returns the lookup table that maps color indexes to color values.

Declaration

public byte[] getLookupTable()

Returns

Type Description
byte[]

The lookup table.

getMaxIndex() Method

Returns the maximum color index supported by the color space.

Declaration

public int getMaxIndex()

Returns

Type Description
int

The maximum color index.

setBaseColorSpace(ColorSpace value) Method

Sets the base color space used to interpret lookup table entries.

Declaration

public void setBaseColorSpace(ColorSpace value)

Parameters

Name Type Description
value ColorSpace

The base color space.

setLookupTable(byte[] value) Method

Sets the lookup table that maps color indexes to color values.

Declaration

public void setLookupTable(byte[] value)

Parameters

Name Type Description
value byte[]

The lookup table.

setMaxIndex(int value) Method

Sets the maximum color index supported by the color space.

Declaration

public void setMaxIndex(int value)

Parameters

Name Type Description
value int

The maximum color index.