• 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
Blend mode 'darken' for NSImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Blend mode 'darken' for NSImage?


  • Subject: Blend mode 'darken' for NSImage?
  • From: Izak van Langevelde <email@hidden>
  • Date: Sun, 18 Apr 2010 22:14:22 -0400

I need to combine a number of NSImages such that each pixel of the result is the darkest of the corresponding pixels of the NSImages.
Blend mode 'darken' does exactly what I need to, but I'm clueless about how to efficiently apply blend modes to NSImages.
An alternative is to use an NSCompositingOperation, but the best candidate NSCompositePlusDarker is not exactly what I need.
I could convert my NSImage to a bitmap and do my thing, but fear a performance hit.

Any suggestions?

Thanks,
Izak
---
Grinnikend door het leven...

_______________________________________________

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: Blend mode 'darken' for NSImage?
      • From: Ken Ferry <email@hidden>
  • Prev by Date: Re: How do I get a file reference w/o relying on the path?
  • Next by Date: Re: Introspecting the current method
  • Previous by thread: Re: Introspecting the current method
  • Next by thread: Re: Blend mode 'darken' for NSImage?
  • Index(es):
    • Date
    • Thread