alphaFromArgb static method

int alphaFromArgb(
  1. int argb
)

Returns the alpha component of a color in ARGB format.

Implementation

static int alphaFromArgb(int argb) {
  return argb >> 24 & 255;
}