当我单击“逆时针旋转”和“顺时针旋转”按钮时,为什么图像消失了?
https://plnkr.co/edit/YFFx7oWnH1V2ppmtZWxW?p=preview
function drawImage() {
clear();
element.save();
element.scale(currentScale, currentScale);
element.rotate(currentAngle * Math.PI / 180);
element.drawImage(image, canvas.width/2/currentScale - image.width/2, canvas.height/2/currentScale - image.height/2);
element.restore();
}
是否有任何更新?