Re: Drawing text with alpha
Re: Drawing text with alpha
- Subject: Re: Drawing text with alpha
- From: "I. Savant" <email@hidden>
- Date: Tue, 21 Aug 2007 21:06:03 -0400
On Aug 21, 2007, at 8:41 PM, Phil wrote:
This seems to be a common question related to drawing graphics but
I haven't found an answer that addresses alpha and text. I've got
a simple NSView subclass which draws a blue background and want to
draw text with it's background alpha set to .1. But as the alpha
is decreased, the background becomes black. My example (how not to
do it) code:
Maybe I'm not reading very carefully (it's late), but have you
tried *not* specifying the background of your text? In other words,
don't specify a color for the NSBackgoundColorAttributeName.
--
I.S.
_______________________________________________
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