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: email@hidden
- Date: Sat, 11 Aug 2007 16:28:23 +0200
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:
This email sent to email@hidden