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/
