RgbaPixels constructor

RgbaPixels(
  1. int width,
  2. int height,
  3. Uint8List bytes
)

Wraps bytes, which hold width × height pixels, 4 bytes each.

Implementation

RgbaPixels(this.width, this.height, this.bytes)
  : assert(bytes.length == width * height * 4);