Angularjs javascript canvas not cleared -
i have application number of canvases within page. these canvases value (picture) inserting base64 string input element , clicking button (that handles required manipulations in background).
my problem that, without loading base64 string, somehow canvases retain pictures loaded in previous session.
i'm using chrome right now. tried closing chrome , reopening, deleting history, etc. still when page open after cleaning history, contents of canvases still exist.
i added following code beginning of relevant angularjs controller:
context_picture.clearrect(0 , 0 , canvas_picture.width , canvas_picture.height ) ;
which not resolve issue.
any clue why experiencing , how hard-clear canvases?
thanks.
got error!!!! not original picture being held somewhere, picking white rectangle when no picture added (i saw base64 string , didn't occur me of white rectangle).
fixed , working needed.
Comments
Post a Comment