Re: Custom alpha for standard window?
Re: Custom alpha for standard window?
- Subject: Re: Custom alpha for standard window?
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 4 Nov 2004 01:38:58 -0800
On Nov 3, 2004, at 11:02 AM, Tim Conkling wrote:
I'm interested in applying a custom alpha channel to a standard
window. I know that it's possible to call setAlphaValue: to set the a
single alpha value for the whole window, but I'm interested in
modifying the alpha on a per-pixel basis. Is this possible without
creating a custom window shape?
The window has to be non-opaque, and then it's up to whatever views are
drawing in that window to determine what the alpha value is for any
given pixel. The -setAlpha: API is really for effects like making a
window fade in.
Customizing windows is pretty easy, though. See this example:
http://developer.apple.com/samplecode/RoundTransparentWindow/
RoundTransparentWindow.html
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden