Copy link to clipboard
Copied
Hi
Is there a way to have getImageData of an specific movie clip instane, without having multiple hidden canvases ?
for example:
var targetData = this.mapMc.children[0].image.getImageData(0, 0, 200, 200);
Best regards
Copy link to clipboard
Copied
getImageData retrieves pixels from a canvas object. So you're asking if you can get data from a canvas without having a canvas.
No. No you cannot.
Copy link to clipboard
Copied
Thank You good sir.
Does that mean, if i want to mix pixel data from difrent layers do i need to have multiple hidden cnavases of that objects alone ?
Would that be the only and efficient way ?