IColorPalette.GetNearestColorIndex

GetNearestColorIndex(int)

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

public int GetNearestColorIndex(int argb32Color)
范围类型描述
argb32ColorInt3232 位 ARGB 颜色。

返回值

最近颜色的索引。

也可以看看


GetNearestColorIndex(Color)

获取最近颜色的索引。

public int GetNearestColorIndex(Color color)
范围类型描述
colorColor颜色。

返回值

最近颜色的索引。

也可以看看