阅读背景:

对HTML5 Canvas的图像在第一次加载时不能正确显示。

来源:互联网 

I'm following a tutorial on importing and displaying images on an HTML5 canvas. Everything works fine, until I try to change the image itself. For example, I'll have a yellow circle as my image, and the script works fine. But if I open the image itself in Paint and change the circle to red, and refresh the page, the circle won't show up until I click or refresh again a second time manually. Here is the code snippet I'm using:I'm following a tutorial on importing and displ




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: