136
rated 0 times
[
141]
[
5]
/ answers: 1 / hits: 19756
/ 12 Years ago, thu, november 29, 2012, 12:00:00
I want to create a new ImageData object in code. If I have a Uint8ClampedArray
out of which I want to make an image object, what is the best way to do it?
I guess I could make a new canvas element, extract its ImageData and overwrite its data attribute, but that seems like a wrong approach.
It would be great if I could use the ImageData constructor directly, but I can't figure out how to.
More From » canvas