• 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: 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


  • Follow-Ups:
    • Re: convert NSBitmapImageRep to black/white depending on pixel hsb
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: User Shutdown or Logout
  • Next by Date: Re: convert NSBitmapImageRep to black/white depending on pixel hsb
  • 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