PCanvasPixels.fromPixels constructor

PCanvasPixels.fromPixels(
  1. int width,
  2. int height,
  3. Uint32List pixels
)

Construct a PCanvasPixels from pixels.

  • pixels is expected to be an Uint32List in the same format of this class implementation.

Implementation

PCanvasPixels.fromPixels(this.width, this.height, this.pixels);