PCanvasPixels.fromBytes constructor

PCanvasPixels.fromBytes(
  1. int width,
  2. int height,
  3. List<int> bytes
)

Construct a PCanvasPixels from bytes.

Implementation

PCanvasPixels.fromBytes(int width, int height, List<int> bytes)
    : this.fromPixels(width, height, _bytesToUint32List(bytes));