I should have looked more thoroughly on Google.
image.wrappedJSObject;
Works.
Greg K
2010-01-17 14:00:46
I should have looked more thoroughly on Google.
image.wrappedJSObject;
Works.
var canvas = document.createElement("canvas").wrappedJSObject,
ctx = canvas.getContext("2d");
canvas.width = image.width;
canvas.height = image.height;
ctx.drawImage(image, 0, 0);
this is what i did. hope it helps
Are you sure the image has finished loading? In other words: is image.complete? It looks like the image data is NOT_AVAILABLE.