rgbaToArgb static method

int rgbaToArgb(
  1. int rgbaColor
)

Converts the RGBA color representation to ARGB.

Implementation

static int rgbaToArgb(int rgbaColor) {
  int a = rgbaColor & 0xFF;
  int rgb = rgbaColor >> 8;
  return rgb + (a << 24);
}