JonazMartinez / explorercanvas

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

Vertical Flip Error #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Scale(1,-1)
2. drawImage(img, 0, -img.height, img.width, img.height)

It should draw the Image flipped Vertically (as in other Br. does),
but it displays nothing at all.

excanvas_r3 On IE6 IE7 IE8 On XP service Pack3

Hi, i think i already found the bugFix

in the drawimage  function on line 540 you can see:
-->if (this.m_[0][0] != 1 || this.m_[0][1])

looks like the correction is made only for the Horizonat flip!!

I corrected it replacing the if statement with:
-->if(this.m_[0][0] != 1||this.m_[0][1]||this.m_[1][1] != 1||this.m_[1][2])

Now it works in IE6, IE7, IE8

I'm not sure it's all here, but Hope this helps

Original issue reported on code.google.com by sl8...@gmail.com on 2 Apr 2009 at 3:21

GoogleCodeExporter commented 9 years ago
Fixed in r52

Original comment by erik.arv...@gmail.com on 14 Apr 2009 at 5:33