Mercurial > hg > NetworkVis
comparison d3s_examples/python-neo4jrestclient/static/platin/lib/excanvas/testcases/drawimage.html @ 8:18ef6948d689
new d3s examples
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 01 Oct 2015 17:17:27 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7:45dad9e38c82 | 8:18ef6948d689 |
---|---|
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>Overflow Test</title> | |
5 <style> | |
6 | |
7 body { | |
8 text-align: center | |
9 } | |
10 | |
11 </style> | |
12 <!--[if IE]><script type="text/javascript" src="../excanvas.js"></script><![endif]--> | |
13 <script> | |
14 | |
15 window.onload = function() { | |
16 var ctx = document.getElementById('c').getContext('2d'); | |
17 | |
18 var img = document.images[0]; | |
19 | |
20 ctx.rotate(Math.PI / 8); | |
21 ctx.drawImage(img, 50, 50); | |
22 | |
23 img.style.display = 'none'; | |
24 | |
25 }; | |
26 | |
27 </script> | |
28 </head> | |
29 <body> | |
30 | |
31 <img src="../examples/ff.jpg"> | |
32 | |
33 <canvas id=c width=200 height=200></canvas> | |
34 | |
35 </body> | |
36 </html> |