How to display an Image in Canvas ?Tagged: Canvas, HTML5This topic has 1 reply, 2 voices, and was last updated 7 years, 6 months ago by Hirendra Sisodiya.Viewing 2 posts - 1 through 2 (of 2 total)AuthorPosts October 30, 2014 at 10:14 am #5093 AnkurMemberHello,I want to display my image in HTML5 Canvas.Following is my code var canvas = document.getElementById(“canvas”); var ctx = canvas.getContext(“2d”); var img = new Image(); img.src = “Capture.PNG”; ctx.drawImage(img, 500, 500);But it’s not working.Thanks Ankur November 19, 2015 at 7:11 am #5147 Hirendra SisodiyaKeymasterYou should look into browser’s console and fix the issue if any error is present there related to canvas or img object. Check your image source path.Good Luck. AuthorPosts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.Log In Username: Password: Keep me signed inLog In