setPixelsRectFrom method
      
void
setPixelsRectFrom()
      
     
    
    
Implementation
void setPixelsRectFrom(PCanvasPixels src, int srcX, int srcY, int dstX,
    int dstY, int width, int height) {
  _checkSameFormat(src);
  final srcPixels = src.pixels;
  for (var y = 0; y < height; ++y) {
    var srcIndex = src.pixelIndex(srcX, srcY + y);
    var dstIndex = pixelIndex(dstX, dstY + y);
    for (var x = 0; x < width; ++x) {
      pixels[dstIndex + x] = srcPixels[srcIndex + x];
    }
  }
}