IndexedColorSpace Class
A color space that maps index values to colors in a lookup table.
Declaration
public class IndexedColorSpace extends ColorSpace
Inherited Members
Inheritance
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 ( |
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. |