---
title: "ImageAttributes.SetGamma"
url: "https://reference.aspose.com/psd/net/aspose.psd/imageattributes/setgamma/"
product: "Aspose.PSD for .NET API Reference"
description: "ImageAttributes method. Sets the gamma value for the default category"
---

{{< psd/tize >}}
## SetGamma(float) {#setgamma}

Sets the gamma value for the default category.

```csharp
public void SetGamma(float gamma)
```

| Parameter | Type | Description |
| --- | --- | --- |
| gamma | Single | The gamma correction value. |

### See Also

* class [ImageAttributes](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)

---

## SetGamma(float, ColorAdjustType) {#setgamma_1}

Sets the gamma value for a specified category.

```csharp
public void SetGamma(float gamma, ColorAdjustType type)
```

| Parameter | Type | Description |
| --- | --- | --- |
| gamma | Single | The gamma correction value. |
| type | ColorAdjustType | An element of the [`ColorAdjustType`](../../coloradjusttype/) enumeration that specifies the category for which the gamma value is set. |

### See Also

* enum [ColorAdjustType](../../coloradjusttype/)
* class [ImageAttributes](../)
* namespace [Aspose.PSD](../../../aspose.psd/)
* assembly [Aspose.PSD](../../../)


