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

Re: Blend mode 'darken' for NSImage?


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

On 2010-04-18, at 11:00 PM, Ken Ferry wrote:

> Ah, so your problem is that not every CG blend mode is available as an NSCompositingOperation? If you would, please file a quick bug mentioning that you needed this.
>

From the documentation: "The compositing operations are related to (but different from) the blend mode settings used in Quartz. " They are different, so I don't consider it a bug...

> If you're running on 10.6, you can use -[NSImage CGImageForProposedRect:context:hints:] to get a CGImage, then draw the CGImage with your blend mode.

I don't want to draw anything, I want an NSImage, and I'm not wildly enthusiastic about drawing everything in a dummy view and then peeling out an NSImage...

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>
References: 
 >Blend mode 'darken' for NSImage? (From: Izak van Langevelde <email@hidden>)
 >Re: Blend mode 'darken' for NSImage? (From: Ken Ferry <email@hidden>)

  • Prev by Date: Re: Zeroing out instance variables
  • Next by Date: Re: Blend mode 'darken' for NSImage?
  • Previous by thread: Re: Blend mode 'darken' for NSImage?
  • Next by thread: Re: Blend mode 'darken' for NSImage?
  • Index(es):
    • Date
    • Thread