Well thats quite exactly what i did, till the reqmt changed, wherein we need to have a few of these icons in a predefined path in VFS, and we need to display the images from there. This is to allow the user in future to download any images that he would like into the system.
----- Original Message ----- From: "Logan Shaw" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[email protected]> Sent: Monday, September 26, 2005 9:57 PM Subject: Re: Need to access resources from VFS. > Deepak.MA wrote: > >>By the way, I assume you're reading a PALM bitmap from this file, not > >>a WINDOWS bitmap, right? > > > It would be a Bitmap that would be written into the VFS using HotSync or > > some similar utility, from the PC. > > I've even tried it out and got to see that the bmp from windows, is stored > > as a jpg in my VFS. > > Then you will need a JPEG decoder, and my method of reading from a VFS > file will be of no use to you. > > However, if you just have a small number of fixed that do not change, I > would recommend putting them as resources inside your application. That's > much easier since all you have to do is cut and paste them into whatever > tool you use to edit resources, and then in the application, you just > use DmGetResource() to get a handle, MemHandleLock() to lock it, and > WinDrawBitmap() to draw the bitmap. Of course, this method doesn't work > if the user gets to change the bitmaps. It only works if they are part > of the application. > > - Logan > > -- > For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > "SASKEN RATED THE BEST COMPANY TO WORK FOR IN INDIA - SURVEY 2004 conducted by the BUSINESS TODAY -Mercer-TNS India" SASKEN BUSINESS DISCLAIMER This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
