## SetThreshold(float) {#setthreshold}

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

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

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

### 也可以看看

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

---

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

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

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

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

### 也可以看看

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

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
