Re: AffineTransform
Re: AffineTransform
- Subject: Re: AffineTransform
- From: Gregory Weston <email@hidden>
- Date: Sat, 12 Sep 2009 10:15:31 -0400
Development wrote:
I am using the following to rotate an image and Im having a problem.
After the transform when I attempt to move the image it collapses to 0
width and does other unpredictable and strange things. What am I
forgetting to do so that the image is movable?
self.transform = CGAffineTransformMakeRotation(delta);
[self setNeedsDisplay];
At a guess, what you're forgetting to do is flank the rotation with
translations so you're rotating around the point you actually want to.
And note that with 2 exceptions the second translation is not just the
inverse of the first.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden