[RESOLVED] Re: Pattern colors and alpha
[RESOLVED] Re: Pattern colors and alpha
- Subject: [RESOLVED] Re: Pattern colors and alpha
- From: Luke Evans <email@hidden>
- Date: Sun, 13 Jan 2008 16:38:58 -0800
Anyway, there's every chance I'm just being dumb - ...
Indeed there is.
The moral of the story here is never to assume.
I _assumed_ (and partly this was a false sense of familiarity) that
NSRectFill would use whatever compositing operation was set in the
graphics context.
Apparently not.
Once RTFM occurred, it was plain that this function forces
NSCompositeCopy, and I clearly wanted NSCompositeSourceOver
Ergo, no image is required - using the more general
NSRectFillUsingOperation I can now bang my hatch pattern with its
alpha right over the top of any previously drawn graphics - with
expected results. Hooray, this n00b gets to move on to the next
conundrum ;-)
-- Lwe
_______________________________________________
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