Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种通过图像旋转在 context2D 上绘制图像的方法。我试过了:
imageElement.getStyle().setProperty("transform", "rotate(-45deg)");
它不起作用,图像没有旋转。还有其他旋转图像的方法吗?
使用setTransform方法将变换应用于Context2D,则drawImage。
setTransform
Context2D
drawImage