Commit 1dd17523b08b76b3268cff08d928a883bd90388f

Authored by Mukul Rajput
1 parent 1d2fae10

this is for bug 16272

400-SOURCECODE/AIAHTML5.Web/libs/html2canvas.js
... ... @@ -2855,8 +2855,16 @@ _html2canvas.Renderer.Canvas = function(options) {
2855 2855 newCanvas.width = Math.ceil(bounds.width);
2856 2856 newCanvas.height = Math.ceil(bounds.height);
2857 2857 ctx = newCanvas.getContext("2d");
2858   -
2859   - ctx.drawImage(canvas, bounds.left, bounds.top, bounds.width, bounds.height, 0, 0, bounds.width, bounds.height);
  2858 + if (/*@cc_on!@*/false || !!document.documentMode) {
  2859 +
  2860 + var imgData = canvas.getContext("2d").getImageData(bounds.left, bounds.top, bounds.width, bounds.height);
  2861 + ctx.putImageData(imgData, 50, 0);
  2862 + }
  2863 + else {
  2864 +
  2865 + ctx.drawImage(canvas, bounds.left, bounds.top, bounds.width, bounds.height, 0, 0, bounds.width, bounds.height);
  2866 + }
  2867 +
2860 2868 canvas = null;
2861 2869 return newCanvas;
2862 2870 }
... ...