【发布时间】:2017-08-15 16:10:43
【问题描述】:
如何在 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.
}
【问题讨论】:
标签: html canvas rotation scale translate