Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to fade the screen using Symbian C++

From 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.
 
gc.SetFadingParameters(aBlackMap,aWhiteMap);
gc.SetFaded(ETrue);
//////////here you can draw bmp/txt/et.c, which you want to show in faded
 
 
gc.SetFaded(EFalse);
//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

Download

Aworking example is provided here: File:FadingEffect.zip

This page was last modified on 30 May 2013, at 04:34.
27 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.

×