Does this library require canvas?
velara3 opened this issue · 3 comments
velara3 commented
Does this library require canvas?
I'm attempting to work around lack of canvas and ImageData object here.
jankovicsandras commented
Hi,
No, it doesn't require canvas, but you need to load and decode the image into an ImageData-like object. It has width, height and data: a one-dimensional array with R G B A values.
var myImagedata = { width: ... , height: ... , data: [ R,G,B,A, R,G,B,A, ... ] };
I tried to answer your Stackoverflow question also.
velara3 commented
Thanks @jankovicsandras! I think that might be it. I'll work on it when I get back to work.
jankovicsandras commented
OK. I'm closing this Issue now, but you can reopen it, if it won't work or you have more questions.