fromARGB static method

int fromARGB(
  1. int a,
  2. int r,
  3. int g,
  4. int b,
)

Implementation

static int fromARGB(int a, int r, int g, int b) {
  return (((a & 0xff) << 24) |
          ((r & 0xff) << 16) |
          ((g & 0xff) << 8) |
          ((b & 0xff) << 0)) &
      0xFFFFFFFF;
}