Re: Rotating an NSImage around it's own center as well as offset to origin

2010-02-21 Thread Ron Fleckner
On 22/02/2010, at 10:43 AM, Alexander Hartner wrote: I would like to rotate and offset an NSImage and then draw it onto an NSImageView. So far I figured out to use Quartz and use CGContextRotateCTM and CGContextTranslateCTM. I got the offset working just fine using this, but as soon as I i

Rotating an NSImage around it's own center as well as offset to origin

2010-02-21 Thread Alexander Hartner
I would like to rotate and offset an NSImage and then draw it onto an NSImageView. So far I figured out to use Quartz and use CGContextRotateCTM and CGContextTranslateCTM. I got the offset working just fine using this, but as soon as I introduce the rotation it rotates the image relative to the