getGray method

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

Returns the gray channel value of the pixel.

Implementation

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