• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom alpha for standard window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Custom alpha for standard window? (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: Internationalization: How to bring the locale in line
  • Next by Date: Re: Recalculating an NSScrollView
  • Previous by thread: Custom alpha for standard window?
  • Next by thread: Seattle Xcoder's, next meeting
  • Index(es):
    • Date
    • Thread