Re: Drawing over a transparent background
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