Re: NSStatusItem image
Re: NSStatusItem image
- Subject: Re: NSStatusItem image
- From: Greg Titus <email@hidden>
- Date: Mon, 3 Mar 2003 12:09:49 -0800
On Sunday, March 2, 2003, at 11:45 PM, Arthur VIGAN wrote:
Hi,
my application uses an NSStatusItem in the menu bar with a little icon
which is an NSImage. So I like to know if it is possible to change the
opacity of the NSImage directly. As I don't "dissolve" the image into
a view, I don't know how to change the opacity. Can somebody help?
Hi Arthur,
Create a second image of the same size (with -initWithSize:), lock
focus on it, and dissolve your first image into it with whatever
opacity you desire. Then use that second image in your status item.
Hope this helps,
- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.