×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    46

    Question Can i set an image as background which is not there in mbm???

    Hi,
    I want to display an image as background on the screen.I want to take that image from c:Data\Images of winscw but not from the mbm file.Please tell me how to do this......
    Last edited by babjan saheb; 2009-01-22 at 05:41.

  2. #2
    Super Contributor
    Join Date
    Jul 2008
    Location
    Chennai,India
    Posts
    889

    Re: How to set an image as background???

    If u don't want to use .mbm file, then you have to decode the files using CImageDecoder to decode images into CFbsBitmap...
    Then you can BitBlt the Bitmap on to the screen in ur view's Draw()....

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: How to set an image as background???

    Hi,

    you can use any format you want - but to display data you have to initialize the CFbsBitmap object and put all data in it. You can use the CImageDecoder to load the bitmap, but you can also open e.g. the BMP file on your own as and oridnary file, process it, load data, palette, etc. and initialize the CFbsBitmap on your own...


    BR
    STeN

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    46

    Re: How to set an image as background???

    Can i set that image as transparent on the screen....

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: How to set an image as background???

    Hi,

    on which screen? The transparency can be achieved by using the proper mask for the displayed file or you can try to do it on your own:
    http://wiki.forum.nokia.com/index.ph...e_without_mask

    You can set also transparenty in RWindow level - but I'm not sure it works on S60 3rd, the UIQ3 supports it (http://discussion.forum.nokia.com/fo...ad.php?t=93535).

    BR
    STeN

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    46

    Re: How to set an image as background???

    Thanks for your reply....

    In my application the mobile theme is visible as background...i want to display my image as background...Can i do that?...If possible how to do that....

  7. #7
    Registered User
    Join Date
    Mar 2008
    Posts
    46

    Re: How to set an image as background???

    Hi stenlik,
    You said that we can also open e.g. the BMP file on your own as and oridnary file, process it, load data, palette, etc. and initialize the CFbsBitmap on your own...I could not understand this...How to do that???

  8. #8
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: How to set an image as background???

    Quote Originally Posted by babjan saheb View Post
    You said that we can also open e.g. the BMP file on your own as and oridnary file, process it, load data, palette, etc. and initialize the CFbsBitmap on your own...I could not understand this...How to do that???
    Begin with reading help "Symbian OS v9.x » Symbian OS reference » C++ component reference » Graphics FBSERV » CFbsBitmap"

    Also read in Wiki - How to read images to Symbian bitmap
    Last edited by A.A.M.; 2009-01-22 at 07:22.

  9. #9
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: How to set an image as background???

    Quote Originally Posted by babjan saheb View Post
    ...
    i want to display my image as background...Can i do that?...If possible how to do that....
    Yes, it's possible, see example: Drawing skins in container

Similar Threads

  1. Replies: 2
    Last Post: 2009-01-22, 06:03
  2. How to set the Container Background to GrayColor?
    By jennie in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-07-02, 05:05
  3. Replies: 4
    Last Post: 2006-12-14, 12:33
  4. Setting a background image on CAknGrid
    By aljaz24 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-01-30, 08:40
  5. Game Developement - Display object on a image background
    By kenkwokkam in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-08, 14:58

Posting Permissions

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