How to fade the screen using Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

This code example shows how to implement a fading effect in a Symbian application. The effect is similar to the transition effect of the Symbian Web Runtime APIs, for e.g. widget.prepareForTransition("fade");widget.performTransition();

Article Metadata
Code ExampleArticle
Created: giridharn (18 May 2007)
Last edited: hamishwillee (30 May 2013)

Code snippet

//For fading the screen 
//use this code in your DRAW method.
//////////here you can draw bmp/txt/et.c, which you want to show in faded
//here txt n everything looks normal.
TUint8 aBlackMap Black map fading parameter. Unfaded this is 0.
TUint8 aWhiteMap White map fading parameter. Unfaded this is 255


Aworking example is provided here: File:FadingEffect.zip

This page was last modified on 30 May 2013, at 04:34.
42 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.