• 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
Gamma Fade using CoreGraphics?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gamma Fade using CoreGraphics?


  • Subject: Gamma Fade using CoreGraphics?
  • From: Hisaoki Nishida <email@hidden>
  • Date: Fri, 13 Jul 2001 02:35:26 -0400

Hi,

I've been trying to implement a smooth gamma fade in & out for when switching resolutions.
DSpContext_FadeGammaIn / DSpContext_FadeGammaOut in DrawSprocket does exactly what I am looking for, but I want to use CoreGraphics to do the same job. The CGDirectDisplay API <http://developer.apple.com/technotes/tn/tn2007.html> has some gamma adjusting functions, but I've been having troubles trying to understand them and implement it.

Can anyone give me some code suggestions on how I would use these functions to perform a smooth fade in / out? The basic idea I had in mind was to repeatedly call CGSetDisplayTransferByFormula, decrementing the 3 RGB gamma values by 0.01 (or something like that) every time I call it, but it didn't work!


Thank you,

-Hisaoki N.


  • Follow-Ups:
    • Re: Gamma Fade using CoreGraphics?
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Auto-opening a Drawer
  • Next by Date: Re: Look And Feel (Guidelines
  • Previous by thread: Re: contextual menus
  • Next by thread: Re: Gamma Fade using CoreGraphics?
  • Index(es):
    • Date
    • Thread