In the examples of MDN's Pixel manipulation with canvas article , after the image is loaded they set img.style.display = 'none';
What is the reason to set display none?
他们希望从图像中读取像素数据而不在页面中显示<img>
元素。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.