• 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: rotating an object around the center of a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rotating an object around the center of a view


  • Subject: Re: rotating an object around the center of a view
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 4 Mar 2007 23:14:13 -0500


On Mar 4, 2007, at 10:53 PM, Bob Smith wrote:

It is more efficient to modify the graphics state, because that is a dynamic operation. Part of the graphics state is a transform which is applied to anything drawn into that state. When you use - concat on an NSAffineTransform object, all you are doing is modifying the graphics state transform; it has no immediate effect, it just alters anything which is drawn after that by transforming the drawing differently. On the other hand, when you apply a transform to an NSBezierPath object, every set of coordinates stored in that path are modified by the transform and replaced with the new transformed coordinates. So it is more efficient to combine all your coordinate system transformations so they happen dynamically in the final draw operations into the graphics state, where a transform is always going to occur anyway.

Read this article for more:

http://developer.apple.com/documentation/GraphicsImaging/Conceptual/ drawingwithquartz2d/dq_affine/chapter_6_section_1.html

Ah. OK thanks.

Ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Re: rotating an object around the center of a view (From: Erik Buck <email@hidden>)
 >Re: rotating an object around the center of a view (From: Ken Tozier <email@hidden>)
 >Re: rotating an object around the center of a view (From: Bob Smith <email@hidden>)
 >Re: rotating an object around the center of a view (From: Ken Tozier <email@hidden>)
 >Re: rotating an object around the center of a view (From: Bob Smith <email@hidden>)

  • Prev by Date: Re: rotating an object around the center of a view
  • Next by Date: Re: rotating an object around the center of a view
  • Previous by thread: Re: rotating an object around the center of a view
  • Next by thread: Re: rotating an object around the center of a view
  • Index(es):
    • Date
    • Thread