<! DOCTYPE html>
>
>
<meta CharSet="UTF-8">
<title></title>
<style type= "Text/css">
* {
margin: 0;
padding: 0;
}
Canvas {
position: absolute;
top: 0px;
Left : 0px;
}
</style>
>
<body>
<img src= "img/2.jpg">
<canvas id= "canvas" width= "All" height= "></"canvas>
<script type= "Text/javascript">
var oC = document.getElementById ("canvas");
var ctx = Oc.getcontext ("2d");
Oc.onmousedown = function() {
document. onmousemove = function(ev) {
var ev = EV | | window. event;
var x = Ev.clientx - n;
var y = ev.clienty - ;
var img = new Image ();
img.src = "img/2.jpg";
img. OnLoad = function () {
ctx.clearrect (0, 0,. );
///Nine parameters is the image image captured by the position of the image captured on the size of the drawing position on the canvas drawing size
ctx.drawimage (img, x+ +, y+ +, +,x, y, 100 );
ctx.globalcompositeoperation = "Destination-atop";
ctx.beginpath ();
ctx.arc (x+50,y+,0,math.pi*2,false);
ctx.fill ();
};
}
document. onmouseup = function() {
document.onmousemove = null;
ctx.clearrect (0, 0,. );
}
}
</script>
</body>
>
Small map Local amplification effect (picture of the words to find a bar, remember is a picture with two times, not two pictures, and your picture is not necessarily the same as me, need to change a large size)