image parents
by migerh
HTML
<link rel="stylesheet" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css">
<script src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id='box' class='jxgbox'></div>
CSS
#box {
width:500px;
height:500px;
}
JavaScript
var brd = JXG.JSXGraph.initBoard('box', {axis:false, boundingbox: [0,0,1080,480]});
xaxis = brd.create('axis', [[0, 0], [1, 0]], {ticks: { ticksDistance: 1080, insertTicks: true}});
yaxis = brd.create('axis', [[0, 0], [0,-1]],{ticks: { ticksDistance: 480, insertTicks: true}});
var urlImg ="https://www.google.de/images/srpr/logo3w.png";
var ima = brd.create('image',[urlImg,[0,480],[1080,0] ]);// =>don't work but [0,0],[1080,-480] work
var poi = brd.create('point', [1004, 200], {name:'A',fixed:false});