如何在缩放,旋转,平移等后在HTML5 Canvas中绘制鼠标指针?
function drawImage() {
clear();
context.save();
context.scale(currentScale, currentScale);
context.rotate(currentAngle * Math.PI / 180);
context.drawImage(image, -image.width / 2, -image.height /
// Here I should expect to draw mouse pointer after scale, rotate or translate.
}