IColorPalette Class
Contents
[
Hide
]Summary: The color palette interface.
Module: aspose.psd
Full Name: aspose.psd.IColorPalette
Aspose.PSD Version: 24.12.0
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| argb_32_entries | int | r | Gets an array of 32-bit ARGB structures. |
| entries | Color[] | r | Gets an array of Color structures. |
| entries_count | int | r | Gets the entries count. |
| is_compact_palette | bool | r | Gets a value indicating whether compact palette is used. |
Methods
| Name | Description |
|---|---|
| get_argb_32_color(index) | Gets the 32-bit ARGB palette color by index. |
| get_color(index) | Gets the palette color by index. |
| get_nearest_color_index(argb_32_color) | Gets the index of the nearest 32-bit ARGB color. |
| get_nearest_color_index(color) | Gets the index of the nearest 32-bit ARGB color. |
Method: get_argb_32_color(index)
get_argb_32_color(index)
Gets the 32-bit ARGB palette color by index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The 32-bit ARGB palette color index. |
Returns
| Type | Description |
|---|---|
| int | The color palette entry specified by the |
Method: get_color(index)
get_color(index)
Gets the palette color by index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The palette color index. |
Returns
| Type | Description |
|---|---|
| Color | The color palette entry specified by the |
Method: get_nearest_color_index(argb_32_color)
get_nearest_color_index(argb_32_color)
Gets the index of the nearest 32-bit ARGB color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| argb_32_color | int | The 32-bit ARGB color. |
Returns
| Type | Description |
|---|---|
| int | The index of the nearest color. |
Method: get_nearest_color_index(color)
get_nearest_color_index(color)
Gets the index of the nearest 32-bit ARGB color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| color | Color |
Returns
| Type | Description |
|---|---|
| int | The index of the nearest color. |