I am trying to search if there is a way to convert a piece of a canvas to a dataURI. Right now I have
canvas.drawImage(canvas, sx, sy, sw, sh, dx, dy, dw, dh);
data = canvas.toDataURL('image/jpeg');
the drawimage gets called hundreds, maybe thousands of times and it's very expensive time-wise. If this step could be skipped it could significant speed things up.
Any thoughts or ideas?