## SetGamma(float) {#setgamma}

设置默认类别的伽玛值。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| gamma | Single | 伽玛校正值。 |

### 也可以看看

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

---

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

设置指定类别的伽玛值。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| gamma | Single | 伽玛校正值。 |
| 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 -->
