Replaces the alpha channel of argb with alpha (0–255).
argb
alpha
int withAlpha(int argb, int alpha) => ((alpha & 0xFF) << 24) | (argb & 0x00FFFFFF);