# RGBA_A
{: .no_toc }

Returns the alpha component (as an **Integer**) from a given RGBA colour value.

Syntax: **RGBA_A(** *RGBA* **)**

*RGBA*
: *required* A **Long** RGBA colour value, of the kind returned by [**RGBA**](/tB/Modules/Information/RGBA.md).

The return value is the alpha (opacity) component in the range 0--255: **0** is fully transparent and **255** is fully opaque.

### Common Errors

| Error | When |
|---|---|
| [94 (`&H5E`)](/Reference/Run-time-Errors.md#94), *Invalid use of Null* | *RGBA* is **Null** |

### Example

This example extracts the alpha component from a colour built with **RGBA**.

```tb check_build
Dim MyColor As Long
Dim AlphaComponent As Integer
MyColor = RGBA(255, 0, 0, 128)
AlphaComponent = RGBA_A(MyColor)      ' Returns 128.
```

### See Also

- [RGBA](/tB/Modules/Information/RGBA.md), [RGB](/tB/Modules/Information/RGB.md) functions
- [RGB_R](/tB/Modules/Information/RGB_R.md), [RGB_G](/tB/Modules/Information/RGB_G.md), [RGB_B](/tB/Modules/Information/RGB_B.md) functions
