## FromRgba(*byte, byte, byte, byte*) {#fromrgba}

Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-255.

```csharp
public static Color FromRgba(byte red, byte green, byte blue, byte alpha)
```

| Parameter | Type | Description |
| --- | --- | --- |
| red | Byte | A byte that represents the red component of the color. |
| green | Byte | A byte that represents the green component of the color. |
| blue | Byte | A byte that represents the blue component of the color. |
| alpha | Byte | A byte that represents the alpha component of the color. |

### Return Value

A new instance of the [`Color`](../) class

### See Also

* class [Color](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)

---

## FromRgba(*int, int, int, int*) {#fromrgba_1}

Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-255.

```csharp
public static Color FromRgba(int red, int green, int blue, int alpha)
```

| Parameter | Type | Description |
| --- | --- | --- |
| red | Int32 | A int that represents the red component of the color. |
| green | Int32 | A int that represents the green component of the color. |
| blue | Int32 | A int that represents the blue component of the color. |
| alpha | Int32 | A int that represents the alpha component of the color. |

### Return Value

A new instance of the [`Color`](../) class

### See Also

* class [Color](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)

---

## FromRgba(*float, float, float, float*) {#fromrgba_2}

Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-1.

```csharp
public static Color FromRgba(float red, float green, float blue, float alpha)
```

| Parameter | Type | Description |
| --- | --- | --- |
| red | Single | A float that represents the red component of the color. |
| green | Single | A float that represents the green component of the color. |
| blue | Single | A float that represents the blue component of the color. |
| alpha | Single | A float that represents the alpha component of the color. |

### Return Value

A new instance of the [`Color`](../) class

### See Also

* class [Color](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
