___ ___ erkimt EDGE can not copy large images using JS / from a canvas? ______ qstntxt ___

I have the following code, which copies pieces of the image "smoothchartshowAnalisysCopy" (500px X 250px) to the larger image (32172px X 250px).

%pre%

It works perfectly with IE, Firefox, Chrome, Safari and Vivaldi, except with MS Edge . MS Edge only copies the pieces of the image from the beginning to the position of 14000px .

In positions greater than 14000px , there is not even an error, but nothing is copied.

I did not find anything in the Microsoft documentation, or anything relevant to Google.

    
___

2

I have the following code, which copies pieces of the image "smoothchartshowAnalisysCopy" (500px X 250px) to the larger image (32172px X 250px).

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);

}

It works perfectly with IE, Firefox, Chrome, Safari and Vivaldi, except with MS Edge . MS Edge only copies the pieces of the image from the beginning to the position of 14000px .

In positions greater than 14000px , there is not even an error, but nothing is copied.

I did not find anything in the Microsoft documentation, or anything relevant to Google.

    
asked by anonymous 02.09.2016 / 04:44

0 answers