图像转置示例

已准备好名为 canvasInputcanvasOutput 的 <canvas> 元素。
点击 试用 按钮查看结果。 您可以选择其他图像。
您可以更改 <textarea> 中的代码以进行更多研究。

canvasInput
canvasOutput