Going bananas on Quartz coordinate system!
At first I managed to render an Image correctly in landscape mode. This required scaling and transforming.
I assume this code "moved" the CTM to the top-right instead of bottom-right but obviously not.
Subsequent rendering of round rects (same method as the image draw) coordinates was down to bottom-right again.
Touches on the other hand seem to report coordinates using top-right as CTM origin.
I'm going crazy. The image shows what I'm currently at, but rendering is tricky since it's trial-and-error coding since I can't get the hang of the CTM.
Anyone got an example of EVERYTHING rendered with top-right as starting point?
Last edited by Jompe71; 02-10-2010 at 01:24 PM.
|