ImageAttributes.SetThreshold

SetThreshold(float)

为默认类别设置阈值(透明度范围)。

public void SetThreshold(float threshold)
参数类型描述
threshold单精度指定阈值的实数。

另请参见


SetThreshold(float, ColorAdjustType)

为指定类别设置阈值(透明度范围)。

public void SetThreshold(float threshold, ColorAdjustType type)
参数类型描述
threshold单精度阈值范围为 0.0 到 1.0,用作分界点,以对将映射到最大值或最小值的颜色进行排序。
typeColorAdjustTypeColorAdjustType的一个元素,指定设置颜色阈值的类别。

另请参见