toPCanvasPixelsARGB method
Implementation
@override
PCanvasPixelsARGB toPCanvasPixelsARGB() => PCanvasPixelsARGB.fromPixels(
width,
height,
Uint32List.fromList(pixels.map((p) {
var a = (p >> 24) & 0xff;
var b = (p >> 16) & 0xff;
var g = (p >> 8) & 0xff;
var r = (p) & 0xff;
return (a << 24) | (r << 16) | (g << 8) | (b);
}).toList(growable: false)));