AddBiLevelEffect

ImageTransformOperationCollection.AddBiLevelEffect 方法

将新的二级(黑白)效果添加到集合的末尾。

public IBiLevel AddBiLevelEffect(float threshold)
参数类型描述
thresholdSingle二级效果的亮度阈值。大于或等于阈值的值设为白色。小于阈值的值设为黑色。

返回值

新图像效果在集合中的索引。

另请参见