Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Painter and transformations
Re: Painter and transformations [message #38850 is a reply to message #38844] Thu, 24 January 2013 00:23 Go to previous messageGo to previous message
mdelfede is currently offline  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.

index.php?t=getfile&id=4024&private=0

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 :

index.php?t=getfile&id=4026&private=0

It seems to me that rotation using discrete 'painter.Rotate()' command does the rotation around a wrong point... or am I missing something ?

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How must Alpha be managed ??
Next Topic: Crash in Painter
Goto Forum:
  


Current Time: Sun May 11 20:49:25 CEST 2025

Total time taken to generate the page: 0.02948 seconds