## MakeTransparent() {#maketransparent}

Makes the specified color transparent for this Bitmap.

```csharp
public void MakeTransparent()
```

### See Also

* class [Bitmap](../)
* namespace [System.Drawing](../../bitmap/)
* assembly [Aspose.Drawing](../../../)

---

## MakeTransparent(Color) {#maketransparent_1}

Makes the specified color transparent for this Bitmap.

```csharp
public void MakeTransparent(Color transparentColor)
```

| Parameter | Type | Description |
| --- | --- | --- |
| transparentColor | Color | The Color structure that represents the color to make transparent. |

### Exceptions

| exception | condition |
| --- | --- |
| InvalidOperationException | The image format of the Bitmap is an icon format. |
| Exception | The operation failed. |

### See Also

* struct [Color](../../color/)
* class [Bitmap](../)
* namespace [System.Drawing](../../bitmap/)
* assembly [Aspose.Drawing](../../../)


