Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User tamnv110's Avatar
    Join Date
    May 2011
    Posts
    22
    I was search way display an image, but i didn't succses display it in screen. I used DrawBitmap(), and BitBlt().
    This is code draw image in my example:
    Code:
    CFbsBitmap *bit = new (ELeave) CFbsBitmap;
    TInt a = bit->Load(_L("C:\\14012011_001.jpg"));
    RDebug::Print(_L("CtestDrawAppView::Draw : %d"), a);
    gc.BitBlt(Rect().iTl, bit);
    Value of a != 0, i don't know it error at where.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    CFbsBitmap load only loads mbm images, thus you must use image decoder API for opening other formats. Please check wiki for full examples. here's one link to get you started: http://www.developer.nokia.com/Commu...Symbian_bitmap

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    CFbsBitmap::Load supports Symbian's own .mbm file format only. The common bitmap formats are supported via CImageDecoder, check examples in the Wiki.

  4. #4
    Registered User tamnv110's Avatar
    Join Date
    May 2011
    Posts
    22
    Thank you, i was display image in screen. And next, i'm learnning http connect.
    Last edited by tamnv110; 2011-11-09 at 03:56.

Similar Threads

  1. How to draw image over the background image
    By amit04.kumar in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2010-09-15, 16:15
  2. draw over image
    By Nourayn in forum Symbian Media (Closed)
    Replies: 28
    Last Post: 2009-05-06, 11:11
  3. How to draw svg Image
    By bashirpk in forum Symbian C++
    Replies: 1
    Last Post: 2006-10-07, 15:55
  4. How can I blit/draw a specific region of an Image to another Image?
    By tongits in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-04-29, 08:52
  5. Draw an Image on itself
    By FatalError in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2004-05-15, 11:08

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