IColorPalette 类

Summary: The color palette interface.

Module: aspose.imaging

Full Name: aspose.imaging.IColorPalette

Properties

NameTypeAccess描述
argb_32_entriesint[]r获取 32 位 ARGB 结构的数组。
entriesColor[]r获取 Color 结构的数组。
entries_countintr获取条目计数。
is_compact_paletteboolr获取一个值,指示是否使用紧凑调色板。

Methods

Name描述
get_argb_32_color(index)按索引获取 32 位 ARGB 调色板颜色。
get_color(index)按索引获取调色板颜色。
get_nearest_color_index(argb_32_color)获取最近的 32 位 ARGB 颜色的索引。
get_nearest_color_index(color)获取最近的 32 位 ARGB 颜色的索引。

Method: get_argb_32_color(index)

 get_argb_32_color(index) 

按索引获取 32 位 ARGB 调色板颜色。

Parameters:

参数TypeDescription
indexint32 位 ARGB 调色板颜色索引。

Returns

TypeDescription
intindex 指定的颜色调色板条目。

Method: get_color(index)

 get_color(index) 

按索引获取调色板颜色。

Parameters:

参数TypeDescription
indexint调色板颜色索引。

Returns

TypeDescription
Colorindex 指定的颜色调色板条目。

Method: get_nearest_color_index(argb_32_color)

 get_nearest_color_index(argb_32_color) 

获取最近的 32 位 ARGB 颜色的索引。

Parameters:

参数TypeDescription
argb_32_colorint32 位 ARGB 颜色。

Returns

TypeDescription
int最近颜色的索引。

Method: get_nearest_color_index(color)

 get_nearest_color_index(color) 

获取最近的 32 位 ARGB 颜色的索引。

Parameters:

参数TypeDescription
colorColor

Returns

TypeDescription
int最近颜色的索引。