单击按钮

时间:2018-11-05 06:09:55

标签: javascript angularjs angularjs-directive

当我单击“逆时针旋转”和“顺时针旋转”按钮时,为什么图像消失了?

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();
}

是否有任何更新?

1 个答案:

答案 0 :(得分:0)

检查下面的链接是否有效

click this link http://jsfiddle.net/sreenivas644/CPKmN/576

相关问题