Re: Transparent colors
Re: Transparent colors
- Subject: Re: Transparent colors
- From: Graham Cox <email@hidden>
- Date: Tue, 29 Jul 2008 14:21:35 +1000
OK, thanks for the clarification.
A bit odd though - on Tiger I was using a transparent colour with
NSRectFill and that worked OK, whatever was drawing "underneath" came
out as expected. On Leopard, it still draws that rect OK, but anything
drawn underneath this rect (using the usual bezier path fill/stroke
methods) suddenly draws in a different composition mode, as if the
underlying graphics context got changed to something else but not
changed back by the NSRectFill.
However take this "analysis" with a pinch of salt because I didn't
pursue the problem, I just changed to not using NSRectFill.
Graham
On 29 Jul 2008, at 12:59 pm, Ken Ferry wrote:
To draw on top of existing color rather than replacing it, you don't
want NSRectFill. There you want NSRectFillUsingOperation with the
NSCompositeSourceOver operation. That should be considered the
'normal' drawing mode, so it's somewhat unfortunate that the nice
convenient looking NSRectFill uses copy mode.
_______________________________________________
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