• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: convert NSBitmapImageRep to black/white depending on pixel hsb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: convert NSBitmapImageRep to black/white depending on pixel hsb
      • From: Raul Fiedler <email@hidden>
References: 
 >convert NSBitmapImageRep to black/white depending on pixel hsb (From: email@hidden)
 >Re: convert NSBitmapImageRep to black/white depending on pixel hsb (From: "Shawn Erickson" <email@hidden>)
 >Re: convert NSBitmapImageRep to black/white depending on pixel hsb (From: Michael Watson <email@hidden>)

  • Prev by Date: Custom drawing menu items....
  • Next by Date: Re: Watching folders for new files and event handling based on that?
  • Previous by thread: Re: convert NSBitmapImageRep to black/white depending on pixel hsb
  • Next by thread: Re: convert NSBitmapImageRep to black/white depending on pixel hsb
  • Index(es):
    • Date
    • Thread