mdelfede Messages: 1308 Registered: September 2007
Ultimate Contributor
Hi Mirek, I'll append a sample test case which do the transformation in 2 ways, one with discrete commands (Translate, Rotate) and the other with a transformation matrix.
They shows the same drawing done in both ways in 2 controls aside; they should be identical (imho...) but on first one the image is not there because rotation shift out of control.
The circle is just to show image center point; you can notice that the line is not on left picture, but it's displayed correctly on right one.
If I remove the rotation (in both paths), I get the correct image for boths, as following :
It seems to me that rotation using discrete 'painter.Rotate()' command does the rotation around a wrong point... or am I missing something ?