Gamma Fade using CoreGraphics?
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.