getAlpha method

num getAlpha(
  1. int x,
  2. int y
)

Get the value of the alpha channel at the given pixel coordinates x, y.

Implementation

num getAlpha(int x, int y) => alpha != null
    ? alpha!.isFloat
        ? alpha!.getFloat(x, y)
        : alpha!.getInt(x, y)
    : 0;