You Are Here:

Community: Developer Discussion Boards

#1 Old how to use CFbsBitmap::StoreL - 2005-12-28, 10:02

Join Date: Aug 2005
Posts: 133
sunny_singh
Offline
Regular Contributor
hi,
i want to store images in MBM file and, i was suggested to use this fuction.
CFbsBitmap::StoreL

in sdk i read this,

static void StoreL(const TDesC& aFilename,TInt aNumSources,const TDesC* aSources[],TInt32 aSourceIds[]);

i couldn't get how to use the last parameters and what the last one mean

const TDesC* aSources[]- An array of pointers to bitmaps to be stored.
TInt32 aSourceIds[]- An array of identifiers for the bitmaps to be stored.

can anyone help me

thanks
synny
Reply With Quote

#2 Old Re: how to use CFbsBitmap::StoreL - 2006-05-23, 06:57

Join Date: Mar 2006
Posts: 116
hemanthnarayanan
Offline
Regular Contributor
hi,
In the MBM concept, for each bitmap inside the MBM file u will be having a specific ID or ENum that will be used to identify that particular bitmap inside the MBM. I suppose that is the last parameter that u were talking about.
and the one before that was an array of pointers where each pointer should be pointing to a bitmap that u want to store inside the MBM. think this is what u were asking.
with regards,
Hemanth.
Reply With Quote

#3 Old Re: how to use CFbsBitmap::StoreL - 2006-05-23, 07:11

Join Date: Oct 2004
Posts: 306
Location: india
Send a message via Yahoo to giridharn
giridharn
Offline
Regular Contributor
hi,
Sunny...

u shd do it as this way.......

1.convert imgs to bmp and save them as .mbm using func CFbsbitmap.. saveL()
2.get this path into some buffer and pass them to TDesC* aSources[],
3.for TInt32 aSourceIds[] u can use any ids its ur wish..i used zeros for allimgs..

4.call this storel() function ur mbm is ready to use now...

hope this will help u in creating ur mbm files.......

bye
Giridhar.N
Reply With Quote

#4 Old Re: how to use CFbsBitmap::StoreL - 2006-05-23, 12:21

Join Date: Aug 2005
Posts: 133
sunny_singh
Offline
Regular Contributor
hi,
thanks to both of you

but it is too late. if u see the date i posted it about five months back. i have already done it. but maybe it would help others who read this post.

thanks
sunny
Reply With Quote

#5 Old Re: how to use CFbsBitmap::StoreL - 2009-06-16, 09:22

Join Date: Aug 2007
Posts: 9
kadriansyah
Offline
Registered User
Try use this....

_LIT(KMbmFile,"C:\\result.mbm");

_LIT(KBMPFilePath0,"C:\\facebook.mbm");
_LIT(KBMPFilePath1,"C:\\balance.mbm");

TInt32* uniqueIds = new ( ELeave ) TInt32[ 2 ];
CleanupStack::PushL( uniqueIds );
uniqueIds[ 0 ] = 0;
uniqueIds[ 1 ] = 0;

TFileName** filenames = new ( ELeave ) TFileName*[ 2 ];
CleanupStack::PushL( filenames );
filenames[ 0 ] = new (ELeave) TFileName( KBMPFilePath0 );
filenames[ 1 ] = new (ELeave) TFileName( KBMPFilePath1 );

CFbsBitmap::StoreL( KMbmFile, // Filename for new multi-bitmap mbm
2, // Count of files
( const TDesC** )filenames, // bitmaps to be loaded
uniqueIds ); // id's of the bitmaps in MBM files

// Clean resources
delete filenames[ 0 ];
delete filenames[ 1 ];

CleanupStack::PopAndDestroy( filenames );
CleanupStack::PopAndDestroy( uniqueIds );
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Crashes when calling the CFbsBitmap::StoreL() function. ramis55 General Symbian C++ 0 2005-09-27 10:18

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia