I have this code, with copy parts from the image "smoothchartshowAnalisysCopy" (500px X 250px) in to the large one "analysisFullGraph1" (32172px X 250px).
And it is working well for IE, firefox, chrome, safari e vivaldi, but not that OK for Edge...
Edge, only can copy for the begin of the large image... maybe the max possition of 14000px...
var c = document.getElementById('analysisFullGraph1'); 32172px X 250px
var ctx = c.getContext('2d');
var imageNow = document.querySelector('#smoothchartshowAnalisysCopy');
var ctxImageNow = imageNow.getContext('2d');
function copy(){
var elmnt = document.querySelector('#analysisFullGraphContainer1');
var x = elmnt.scrollLeft;
var y = elmnt.scrollTop;
var imgData = ctx.getImageData(x, 0, 828, 270);
ctxImageNow.putImageData(imgData, 0, 0);
}
I cant find info on Microsoft DOCs, not even in google..
I appreciate any help ou tips!