Displying image files
Login to reply to this topic.
ven, 2007-09-14 07:49
Joined: 2007-09-14
Forum posts: 8

Hi to all ,as i want to know how to display image files which are stored in mobile at run time? my application is to give list of images to the user and when he will click on tht image name it will display its whole view. i know the way to display images statically by making mbm file frol mmp. but i do not know the way to implement this run time .

Plz help ...
Its urgent..........


ven, 2007-09-14 09:38
Joined: 2005-11-20
Forum posts: 1321

Isn't it always urgent? Smiling

You have to load the picture from its file (assuming that it is somewhere on a drive of the phone, as a single file), and possibly convert the picture to a CFbsBitmap*, and then use CWindowGc::DrawBitmap.

For reading from file, in UIQ there is the CMdaImageFileToBitmapUtility class. Don't know about S60...


René Brunner

ven, 2007-09-14 09:43
Joined: 2007-09-14
Forum posts: 8

well thanks 4 suggestion, and from the way you have told i have to use mbm file, bcoz in bmp file directly we can not loaded.
I want for bmp files or any image file. The problem is i do not know at run time to convert bmp to mbm files.

So i m confused. Sad

ven, 2007-09-14 09:56
Joined: 2005-11-20
Forum posts: 1321

Well, probably we produced a misunderstanding.

It is for example perfectly possibly to install together with your program any number of picture files in Windows Bitmap, JPEG or GIF format, and then at program runtime load the pictures from these files on the phone, convert them to Symbian bitmaps while loading, and display them.

This is exactly the job of the CMdaImageFileToBitmapUtility class, at least in UIQ. I think in S60 it is deprecated, and there is something new (and hopefully better) to replace it.


René Brunner

ven, 2007-09-14 10:04
Joined: 2005-11-20
Forum posts: 1321

I checked: The S60 SDK documentation tells that CImageDecoder::FileNewL() replaces the class that I mentioned.


René Brunner

ven, 2007-09-14 10:05
Joined: 2007-09-14
Forum posts: 8

well may be i cnt clearly tell u what i want to do, that was creating misunderstanding.
Well i am devloping it for s60 third edtition and there has a class CMdaImageFileToBitmapUtility but i do not know how to use it for my prograam.

Can you plz give me any idea to implement ths?

ven, 2007-09-14 10:52
Joined: 2005-11-20
Forum posts: 1321

i found a sample code at the S60 wiki:
http://wiki.forum.nokia.com/index.php/How_to_read_images_to_Symbian_bitmap

I think that should help you.


René Brunner

ven, 2007-09-14 11:15
Joined: 2007-09-14
Forum posts: 8

well thanks a lot 4 ur help.
I will try out that code, and will tell u if i want some help u.

mer, 2007-12-26 07:34
Joined: 2007-12-26
Forum posts: 1

Hi guys,

I'm a newbie in this forum and also about Symbian OS. I just want to ask your help about displaying image(bitmaps). I also try the example http://wiki.forum.nokia.com/index.php/How_to_read_images_to_Symbian_bitmap but it's not working. I hope you can help me if you were able to run it.

Thanks...


copyright 2003-2009 NewLC SARL