Is there any implementation of canvas without document.createElement('canvas')?
I want to work with canvas in web worker but i can't pass canvas data to it via worker.postMessage(), because canvas is HTMLElement.
var canvas = document.createElement('canvas'), worker = new Worker('canvas.js');
worker.postMessage(canvas.getData());
Also i don't want to pass canvas's ImageData to web worker because i don't want to implement context2d.drawImage() manually.
Nope. Sorry, ImageData is your only recourse here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With