What I've got to pull the pixel data thus far:
For example, executing it from the marketplace item listings page.Code:var c = document.createElement('canvas'); var ctx = c.getContext("2d"); var image = new Image(); image.src = "../../../dress-up/avatar/vend/10006349_tot_month.png"; ctx.drawImage(image, 0, 0, image.width, image.height); var data = ctx.getImageData(0,0,image.width,image.height);
If you do image = document.getElementById ,
you get security errors because gaia doesnt like cross-origin data so you have to pull the url like I have done and set the src for it trk.
Results 1 to 33 of 33
Thread: A little project of mine
Threaded View
- 08 Mar. 2013 03:04am #6