• 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: Drawing over a transparent background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing over a transparent background


  • Subject: Re: Drawing over a transparent background
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 24 Aug 2009 23:44:12 +0100

On 24 Aug 2009, at 23:36, Ron Fleckner wrote:

I think you are right to suggest drawing it all in one view. That would probably avoid the problem. The reason I don't is I'm too much of a maths dolt to be able to work out the point co-ordinates for each of the hand positions.

:-) You don't need to do that...

By giving each hand it's own view, I simply draw the hand from the centre to the top of the view, and then rotate the view by the required amount.

...and that's a *really* heavyweight way to do things. I'm surprised it's causing trouble (it shouldn't, I don't think), but you certainly don't need a view per hand anyway.


But now while writing this, I realize it's possible to rotate each hand by using CGContextAddArc(...) and have a different arc for each hand.

Rather than doing that, just draw them as you are doing now, but use NSAffineTransform (or CGAffineTransform) to set up the necessary transform yourself for each hand.


Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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


  • Follow-Ups:
    • Re: Drawing over a transparent background
      • From: Ron Fleckner <email@hidden>
References: 
 >Drawing over a transparent background (From: Ron Fleckner <email@hidden>)
 >Re: Drawing over a transparent background (From: Rob Keniger <email@hidden>)
 >Re: Drawing over a transparent background (From: Ron Fleckner <email@hidden>)
 >Re: Drawing over a transparent background (From: Steve Christensen <email@hidden>)
 >Re: Drawing over a transparent background (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: Drawing over a transparent background
  • Next by Date: sortedArrayUsingFunction
  • Previous by thread: Re: Drawing over a transparent background
  • Next by thread: Re: Drawing over a transparent background
  • Index(es):
    • Date
    • Thread