Re: Faster way to test pixels?
Re: Faster way to test pixels?
- Subject: Re: Faster way to test pixels?
- From: Graham Cox <email@hidden>
- Date: Mon, 26 May 2008 20:43:41 +1000
On 26 May 2008, at 9:44 am, Ken Ferry wrote:
The usual advice is to try drawing instead of looking at bytes. It
really isn't so different. Try this:
[]
Thanks again Ken,
This is a terrific method for doing this, works great, nice and fast.
I haven't profiled it to get reliable figures yet but it's already
changed the whole order of what stuff is taking time. The other huge
advantage of this approach is that it allows me to cut out a lot of
other code I was using (substituting black for white and other stuff
that was needed before) so in itself that is going to be a huge win.
cheers, Graham
_______________________________________________
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