IPsdColorPalette Class
Contents
[
Hide
]Summary: The pasd color palette
Module: aspose.psd
Full Name: aspose.psd.IPsdColorPalette
Inheritance: IColorPalette
Aspose.PSD Version: 24.9.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. |
has_transparent_color | bool | r | Gets a value indicating whether transparent color exists. |
is_compact_palette | bool | r | Gets a value indicating whether compact palette is used. |
raw_entries | byte | r | Gets the raw color palette entries data. |
raw_entries_count | int | r | Gets the raw color palette entries count. |
transparent_color | Color | r | Gets the transparent color. |
transparent_index | short | r | Gets the index of the transparent color. |
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. |