Calculate ARGB/RGBA from Raw Color and Alpha Value
RGBA or ARGB colors are created from 3 primary color values (RGB) and 1 value called alpha, combined into a single 32bit unsigned integer.
Here is a program to compose Alpha with any RGB color using shift technique.
#include <iostream>
int main()
{
...
blog.mdminhazulhaque.io1 min read