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


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

  • Prev by Date: Re: convert NSBitmapImageRep to black/white depending on pixel hsb
  • Next by Date: Re: User Shutdown or Logout
  • 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