Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - <html>
 - <head>
 - <!-- Example code from http://www.slashgame.net/2011/05/display-image-on-canvas.html -->
 - <script>
 - var canvas = document.getElementById('canvas');
 - var context2D = canvas.getContext('2d');
 - var img = new Image();
 - img.src = "http://www.blogger.com/img/logo40.png";
 - context2D.drawImage(img, 100, 50);
 - </script>
 - </head>
 - <body>
 - <canvas id="canvas" width="400" height="400">
 - Browser not compatible with HTML5 canvas
 - </canvas>
 - </body>
 - </html>
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment