| Learn | HTML - Images - Is context drawimage not displaying the image on the canvas |
|---|
| Is "context.drawImage" not displaying the image on the Canvas? Make sure your image object is fully loaded before you try to draw it on the canvas with In JavaScript, images are not loaded immediately. Instead, images are loaded asynchronously and during the time they take to load JavaScript continues executing any code that follows Example making sure the image is fully loaded before trying to draw it with .drawImage Example loading multiple images before trying to draw with any of them There are more full-functioned image loaders, but this example illustrates how to do it |
Read Article
https://develop.horje.com/learn/1434/reference