## 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 [System.Drawing.Imaging](../../imageattributes/)
* assembly [Aspose.Drawing](../../../)

---

## 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 enumeration that specifies the category for which the gamma value is set. |

### See Also

* enum [ColorAdjustType](../../coloradjusttype/)
* class [ImageAttributes](../)
* namespace [System.Drawing.Imaging](../../imageattributes/)
* assembly [Aspose.Drawing](../../../)


