getPixel method Null safety
Get the pixel from the given x
, y
coordinate. Color is encoded in a
Uint32 as #AABBGGRR. No range checking is done.
Implementation
int getPixel(int x, int y) => data[y * width + x];
Get the pixel from the given x
, y
coordinate. Color is encoded in a
Uint32 as #AABBGGRR. No range checking is done.
int getPixel(int x, int y) => data[y * width + x];