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: Uli Kusterer <email@hidden>
- Date: Sat, 11 Aug 2007 09:41:58 +0200
On 11.08.2007, at 03:33, Michael Watson wrote:
As Shawn said, Core Image has this functionality built-in, and it's
quite fast. But I'm puzzeld as to why it took you "minutes" to scan
the pixels of such a small bitmap and perform this transformation.
What, exactly, does your code look like?
He's probably using NSReadPixel(), which is kinda slow. If you can
directly read the pixel data (you probably won't care about more than
32 bits of data if you're gonna turn anything into B/W right
afterwards), you'll probably be faster.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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