## MakeTransparent() {#maketransparent}

Rend la couleur spécifiée transparente pour cetteBitmap .

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

### Voir également

* class [Bitmap](../../bitmap)
* espace de noms [System.Drawing](../../bitmap)
* Assemblée [Aspose.Drawing](../../../)

---

## MakeTransparent(Color) {#maketransparent_1}

Rend la couleur spécifiée transparente pour cetteBitmap .

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

| Paramètre | Taper | La description |
| --- | --- | --- |
| transparentColor | Color | LaColor structure qui représente la couleur à rendre transparente. |

### Exceptions

| exception | condition |
| --- | --- |
| InvalidOperationException | Le format d'image de laBitmap est un format d'icône. |
| Exception | L'opération a échoué. |

### Voir également

* struct [Color](../../color)
* class [Bitmap](../../bitmap)
* espace de noms [System.Drawing](../../bitmap)
* Assemblée [Aspose.Drawing](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
