Discussion:
wx 3.0.0 - point (0,0) shifted after rotation
Peter Fabo
2014-03-04 07:05:38 UTC
Permalink
<Loading Image...>

<Loading Image...>

Hi all,

I have small problem - small difference between ver. 3.0.0 and older:

a pieces of code create different outputs in position of image origin
(0,0) (see images with zoom)
...
m=gc.CreateMatrix()
m.Translate(x,y)
m.Rotate(pi/2.0) - or - m.Rotate(0.0)
gc.SetTransform(m)
self.drawImage(gc, wx.GREEN)
...

Any idea ?

With regards
Peter
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Robin Dunn
2014-03-15 04:48:04 UTC
Permalink
Post by Peter Fabo
<https://lh4.googleusercontent.com/-LLlONIzzrww/UxV6LYCRWgI/AAAAAAAAAT0/KcCIMcBSLPY/s1600/Okno+bez+n%C3%A1zvu_014.png>
<https://lh4.googleusercontent.com/-upIAlGFViic/UxV6G4f7VJI/AAAAAAAAATs/9kk-MYLC9lg/s1600/Screenshot+from+2014-03-03+14%3A14%3A53.png>
Hi all,
a pieces of code create different outputs in position of image origin
(0,0) (see images with zoom)
...
m=gc.CreateMatrix()
m.Translate(x,y)
m.Rotate(pi/2.0) - or - m.Rotate(0.0)
gc.SetTransform(m)
self.drawImage(gc, wx.GREEN)
...
Any idea ?
Please ask about this on the wx-users or wx-dev lists.
--
Robin Dunn
Software Craftsman
http://wxPython.org
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...