Re: convert NSBitmapImageRep to black/white depending on pixel hsb
Re: convert NSBitmapImageRep to black/white depending on pixel hsb
- Subject: Re: convert NSBitmapImageRep to black/white depending on pixel hsb
- From: John Stiles <email@hidden>
- Date: Sat, 11 Aug 2007 08:19:44 -0700
If you're unsure about a performance issue, just use Shark and then
you'll know why :) It can even trace inside system functions like
colorAtX:y:.
On Aug 11, 2007, at 7:28 AM, email@hidden wrote:
I have figured out that the super costly code is
NSColor* color = [image colorAtX:x y:y];
Why would colorAtX be so heavy?
When using [image getPixel:rgb atX:x y:y]; instead it runs like a
charm.
Thanks
_______________________________________________
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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