## SetThreshold(float) {#setthreshold}

Ställer in tröskeln (transparensintervall) för standardkategorin.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| threshold | Single | Ett reellt tal som anger tröskelvärdet. |

### Se även

* class [ImageAttributes](../)
* namnutrymme [Aspose.PSD](../../imageattributes/)
* hopsättning [Aspose.PSD](../../../)

---

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

Ställer in tröskeln (transparensintervall) för en angiven kategori.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| threshold | Single | Ett tröskelvärde från 0,0 till 1,0 som används som en brytpunkt för att sortera färger som kommer att mappas till antingen ett högsta eller ett minimivärde. |
| type | ColorAdjustType | Ett inslag av[`ColorAdjustType`](../../coloradjusttype/) som anger kategorin för vilken färgtröskeln är inställd. |

### Se även

* enum [ColorAdjustType](../../coloradjusttype/)
* class [ImageAttributes](../)
* namnutrymme [Aspose.PSD](../../imageattributes/)
* hopsättning [Aspose.PSD](../../../)


