There is a way to get the image of a <canvas> element from a iframe ?
I get the canvas element with this in JS :
v_canvas = document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("canvas")[0]
But i cant pass it to GetGadgetAttribute() it return nothing....
here some code :
Code: Select all
!v_canvas = document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("canvas")[0]
;Debug canvas
imageID = GetGadgetAttribute(canvas, #PB_Canvas_Image )
ExportImage(imageID, "test",#PB_ImagePlugin_PNG)
