Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor silver_man82's Avatar
    Join Date
    Mar 2005
    Posts
    51
    Drear friends
    I have to draw bitmap with extract the width and highs of the image, draw the image in full screen

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    just make the contaier to have application rect instead client rect, so it will fill the whole screen. then in your draw just use the rect passed to it to fill the screen with your image.

    yucca

  3. #3
    Regular Contributor silver_man82's Avatar
    Join Date
    Mar 2005
    Posts
    51
    Sorry , but I cant understand how you can do that.

  4. #4
    Regular Contributor silver_man82's Avatar
    Join Date
    Mar 2005
    Posts
    51
    Here's how you draw them [from the Draw(TRect aRect) function where aBitmap is of type CFbsBitmap]:

    CWindowGc& gc = SystemGc();

    (1) TRect rect = Rect(); // to stretch/shrink to full client area
    gc.DrawBitmap(rect, aBitmap);

    (2) TRect rect = Rect();
    rect.Resize(0.5, 0.5) // (made up function) to draw to half client area
    gc.DrawBitmap(rect, aBitmap);

    (3) TRect rect = Rect();
    rect.Resize(2, 2) // (made up function) to draw to double client area - needs scrollbars
    gc.DrawBitmap(rect, aBitmap);

    (4) // to display the bitmap at full size regardless of screensize use BitBlt
    // Sorry, haven't used this so can't advise any further on it
    gc.BitBlt(aRect.iTl, aBitmap, redrawRect);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved