## Color.WithAlpha method

Creates copy of the Color with specified alpha component.

```java
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](../)
* package [com.aspose.html.drawing](../../../com.aspose.html.drawing/)
* package [Aspose.HTML](../../../)
