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 #38852 is a reply to message #38851] Thu, 24 January 2013 09:17 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1308
Registered: September 2007
Ultimate Contributor
Well, the purpose is :

1- Move te origin to 'center' point, aka have point (0,0) at 'center' point

2- Rotate the reference 45° AROUND CENTER

3- Move reference again to be on ImageCtrl center

4- Draw stuffs

5- Undo the transformation


That should (IMHO...) be done with

Translate(-center).Rotate(-angle).Translate(imagecenter)


So, maybe I understand Painter transformations wrong, but I still don't know how to have the thing to what I want Smile
Even more, if I remove the Rotate part it behaves as expected, so I guess that the problem (mine or Painter's one) it's the rotation center point.

BTW, you're right, I'm reversing the product's order in transformation matrices, but the weird is that if I do it right it doesn't work either....

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:42:29 CEST 2025

Total time taken to generate the page: 0.00748 seconds