## Color.WithAlpha method

Creates copy of the Color with specified alpha component.

```csharp
public Color WithAlpha(float alpha)
```

| Parameter | Type | Description |
| --- | --- | --- |
| alpha | Single | Value of Alpha component |

### Return Value

A new instance of the [`Color`](../) class

### See Also

* class [Color](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
