• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AffineTransform
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Subversion and Interface Builder
  • Next by Date: Retaining a NSURL and retaining its -path
  • Previous by thread: AffineTransform
  • Next by thread: Re: Cocoa-dev Digest, Vol 6, Issue 1304
  • Index(es):
    • Date
    • Thread