## SetColorKey(Color, Color) {#setcolorkey}

Sets the color key for the default category.

```csharp
public void SetColorKey(Color colorLow, Color colorHigh)
```

| Parameter | Type | Description |
| --- | --- | --- |
| colorLow | Color | The low color-key value. |
| colorHigh | Color | The high color-key value. |

### See Also

* struct [Color](../../../system.drawing/color/)
* class [ImageAttributes](../)
* namespace [System.Drawing.Imaging](../../imageattributes/)
* assembly [Aspose.Drawing](../../../)

---

## SetColorKey(Color, Color, ColorAdjustType) {#setcolorkey_1}

Sets the color key (transparency range) for a specified category.

```csharp
public void SetColorKey(Color colorLow, Color colorHigh, ColorAdjustType type)
```

| Parameter | Type | Description |
| --- | --- | --- |
| colorLow | Color | The low color-key value. |
| colorHigh | Color | The high color-key value. |
| type | ColorAdjustType | An element of ColorAdjustType that specifies the category for which the color key is set. |

### See Also

* struct [Color](../../../system.drawing/color/)
* enum [ColorAdjustType](../../coloradjusttype/)
* class [ImageAttributes](../)
* namespace [System.Drawing.Imaging](../../imageattributes/)
* assembly [Aspose.Drawing](../../../)


