Re: Blend mode 'darken' for NSImage?
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