KingPsychopath / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

Picture neither rotated, nor scaled, nor transformed #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
See code underneath. Works under Firefox but not IE8.

What is the expected output? 
Picture rotated (resp. scaled or transformed).
What do you see instead?
Picture as without rotate (resp, scale or transform) function.

What version of the product are you using? On what operating system?
excancas r3 or r71, vista, ie8

Please provide any additional information below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if IE]><script type="text/javascript" src="JS/excanvas.js"></script><!
[endif]-->
<title>Untitled Document</title>
<script type="text/javascript">
function drawCanvas(){
    var canvas = document.getElementById('canvas1');
    var img = new Image();
    img.onload = function(){
        if(canvas.getContext){
            var context = canvas.getContext('2d');
            context.rotate(Math.PI / 4);
//          context.scale(1, 0.5);
//          context.setTransform(1, Math.PI / 4, 0, 1, 0, 0);
            context.drawImage(img, 0, 0, img.width, 
img.height, 0, 0, img.width, img.height);
        }
    }
    img.src = 'Italy/Calabria/Pizzo/Thumbs/Pizzo%20(011).jpg';
}</script>
</head>

<body onload="drawCanvas()">
<canvas id="canvas1" width="800" height="800">
</canvas>
</body>
</html>

Thanks for your help

Original issue reported on code.google.com by Raoul.Ki...@gmail.com on 28 Nov 2009 at 7:47

GoogleCodeExporter commented 9 years ago
I also experience this problem... big issue for me. This seems to fix it 
however: http://dev.sencha.com/playpen/tm/excanvas-patch/

Original comment by markembl...@gmail.com on 20 Dec 2010 at 1:36

GoogleCodeExporter commented 9 years ago
Has this patch already been applied?

Original comment by timo.wes...@gmail.com on 11 Aug 2011 at 12:59