Canvas-Designer icon indicating copy to clipboard operation
Canvas-Designer copied to clipboard

How to get clear canvas drawing image..

Open Prajaktatk opened this issue 8 years ago • 2 comments

hello sir, In Firefox when i draw image and erase some part and then click on export as image button then in image, erase part also get displays but in chrome erase part not display. how to get rid from this?

Prajaktatk avatar Jul 19 '16 11:07 Prajaktatk

Did you find any solution for this? @Prajaktatk @muaz-khan

RamyaAshika avatar Nov 13 '18 05:11 RamyaAshika

Ya, I found it. Just make this point as empty.

function decorateClear() { var context = getContext("clear") , image = new Image; image.onload = function () { context.drawImage(image, 4, 4, 32, 32), document.querySelector("#clear").onclick = function () { // points.length && (points.length = points.length - 1, drawHelper.redraw()), syncPoints(!0) points = [], drawHelper.redraw() } }, image.src = data_uris.clear }

RamyaAshika avatar Dec 17 '18 06:12 RamyaAshika