## SetThreshold(float) {#setthreshold}

设置默认类别的阈值（透明度范围）。

```csharp
public void SetThreshold(float threshold)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| threshold | Single | 指定阈值的实数。 |

### 也可以看看

* class [ImageAttributes](../)
* 命名空间 [Aspose.PSD](../../imageattributes/)
* 部件 [Aspose.PSD](../../../)

---

## SetThreshold(float, ColorAdjustType) {#setthreshold_1}

设置指定类别的阈值（透明度范围）。

```csharp
public void SetThreshold(float threshold, ColorAdjustType type)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| threshold | Single | 从 0.0 到 1.0 的阈值，用作断点以对将映射到最大值或最小值的颜色进行排序。 |
| type | ColorAdjustType | 的一个元素[`ColorAdjustType`](../../coloradjusttype/)指定为其设置颜色阈值的类别。 |

### 也可以看看

* enum [ColorAdjustType](../../coloradjusttype/)
* class [ImageAttributes](../)
* 命名空间 [Aspose.PSD](../../imageattributes/)
* 部件 [Aspose.PSD](../../../)


