×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Bmp image not showing

    Hi all,
    I'm developing a full screen application, in which i'm using a image(bmp) for the Screen header and footer. The image is drawing fine for Header (i.e. at top of the screen), but not showing for Footer (i.e. at Bottom of the screen). The conventional CBA is keeping to show. Following is the code snpi i'm using in my AppView

    CEikonEnv::Static()->Flush();
    gc.BitBlt(TPoint(0, 0), iHeaderImg);//Drawing Header
    CEikonEnv::Static()->Flush();
    gc.BitBlt(TPoint(0, 300), iHeaderImg);//Drawing Footer
    CEikonEnv::Static()->Flush();

    Please help me on the same. Waiting for the reply.
    Thanks in advance.

  2. #2
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: Bmp image not showing

    Hello,
    i suppose you have got also CCoeControl class ?

    when you call SetRect there what Rect do you put there ?

    How do you set your application full screen ?

  3. #3
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: Bmp image not showing

    do you want to draw bmp (image) on full scree or what? Sry i didn't understand you. If i am getting you right then see this thread

    http://discussion.forum.nokia.com/fo...d.php?t=110392

    Regards,
    Sumit

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Re: Bmp image not showing

    Hi nuker85,
    Following is my code for setting the application fullscreen

    /* Code for Full Screen */

    // Window that fills the entire screen
    TRect temp_rect;
    AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EApplicationWindow, temp_rect);
    TRect iFullRect = temp_rect;

    // Rect that occupied by control pane (i.e. CBA)
    AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EControlPane, temp_rect);

    // Calculate final rect which depends on CBA location
    AknLayoutUtils::TAknCbaLocation cba_location = AknLayoutUtils::CbaLocation();

    switch(cba_location) {
    case AknLayoutUtils::EAknCbaLocationBottom:
    iFullRect.SetHeight(iFullRect.Height() - temp_rect.Height());
    // iFullRect.bottom -= temp_rect.Height();
    break;

    case AknLayoutUtils::EAknCbaLocationLeft:
    // iFullRect.left += temp_rect.Width();
    break;

    case AknLayoutUtils::EAknCbaLocationRight:
    // iFullRect.right -= temp_rect.Width();
    break;

    default:
    break;
    }

    /* Till Here */

    // Create a window for this application view
    CreateWindowL();

    // Set the windows size
    SetRect( iFullRect/*aRect*/ );

    For your information, the drawable area is not ends up above the CBA area.

  5. #5
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Bmp image not showing

    Quote Originally Posted by anindyasen.cse View Post
    Hi nuker85,
    Following is my code for setting the application fullscreen

    /* Code for Full Screen */

    // Window that fills the entire screen
    TRect temp_rect;
    AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EApplicationWindow, temp_rect);
    TRect iFullRect = temp_rect;

    // Rect that occupied by control pane (i.e. CBA)
    AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EControlPane, temp_rect);

    // Calculate final rect which depends on CBA location
    AknLayoutUtils::TAknCbaLocation cba_location = AknLayoutUtils::CbaLocation();

    switch(cba_location) {
    case AknLayoutUtils::EAknCbaLocationBottom:
    iFullRect.SetHeight(iFullRect.Height() - temp_rect.Height());
    // iFullRect.bottom -= temp_rect.Height();
    break;

    case AknLayoutUtils::EAknCbaLocationLeft:
    // iFullRect.left += temp_rect.Width();
    break;

    case AknLayoutUtils::EAknCbaLocationRight:
    // iFullRect.right -= temp_rect.Width();
    break;

    default:
    break;
    }

    /* Till Here */

    // Create a window for this application view
    CreateWindowL();

    // Set the windows size
    SetRect( iFullRect/*aRect*/ );

    For your information, the drawable area is not ends up above the CBA area.

    r u talking talking about 3rd edition???

    Use SetFullScreenApp(ETrue) set full screen app. //for 3rd edition

    Pass Application rect instead of client rect to AppView, As follow
    iAppView = CHelloWorldAppView::NewL(ApplicationRect());

Similar Threads

  1. Changing color of text in bmp image
    By amey_kulkarni in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2009-01-09, 11:26
  2. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  3. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

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