Interface IColorPalette
Interface IColorPalette
名称: Aspose.Imaging 收藏: Aspose.Imaging.dll (25.4.0)
颜色面板界面。
public interface IColorPalette
Properties
Argb32Entries
接收一系列 32 位 ARGB 结构。
int[] Argb32Entries { get; }
财产价值
int ( )
Entries
得到一系列的 Aspose.Imaging.Color 结构。
Color[] Entries { get; }
财产价值
Color ( )
EntriesCount
收到入口数。
int EntriesCount { get; }
财产价值
IsCompactPalette
收到一个值,表明是否使用了小型板块。
bool IsCompactPalette { get; }
财产价值
Remarks
压缩板意味着图像将仅包含所指定的插件,如果可能的话,或者换句话说图像将更加压缩,占据更少的空间;否则将有 2^BitsPerPixel 输入,图像将为所有可能的插件提供更多的空间。将此值定为真实的,并改变插件可能会导致性能罚款,因为数据流动可能会发生,所以仔细使用它。
Methods
GetArgb32Color(因特)
根据索引获得 32 位 ARGB 彩色。
int GetArgb32Color(int index)
Parameters
index
int
32 位 ARGB 色彩指数。
Returns
颜色板输入由 index" 指定。
Exceptions
如果指定的颜色板 index’ 出于板输入范围。
GetColor(因特)
按指数获取彩色。
Color GetColor(int index)
Parameters
index
int
彩色指数 彩色指数
Returns
颜色板输入由 index" 指定。
Exceptions
如果指定的颜色板 index’ 出于板输入范围。
GetNearestColorIndex(因特)
获取最接近 32 位 ARGB 颜色的指数。
int GetNearestColorIndex(int argb32Color)
Parameters
argb32Color
int
32 位 ARGB 色彩
Returns
最接近的颜色的指数。
GetNearestColorIndex(Color)
接近最接近的颜色的指数。
int GetNearestColorIndex(Color color)
Parameters
color
Color
颜色。
Returns
最接近的颜色的指数。