getRed method

  1. @override
int getRed(
  1. int pixel
)
override

Returns the red channel value of the pixel.

Implementation

@override
int getRed(int pixel) => (pixel >> 16) & 0xFF;