×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    39

    Doing a gradient fill

    In Nokia 9210 applications there is a title bar with gradient fill. Is there a tool for doing gradient fill or do I have to implement it by myself?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    76

    RE: Doing a gradient fill

    You can fill a rectangle by using gradient brush pattern. The pattern can be created as described below.

    CFbsBitmap* brush=new(ELeave)CFbsBitmap;
    TInt startColor=KRgbBlue; // This is an application-specific constant
    TInt endColor=KRgbWhite; // This is an application-specific constant
    TInt brushWidth=10; // This is an application-specific constant
    ColorUtils::TBitmapOrientation brushOrientation=ColorUtils::EBitmapOrientationVertical;
    ColorUtils::CreateGradientBitmapL(*brush, brushWidth, iEikonEnv->WsSession(), brushOrientation, startColor, endColor);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×