Palm OS Bitmaps are NOT the same as windows bitmaps. You can not take a .bmp file, place it on an expansion card and just draw it.

You need to either write a parser for a windows bitmap, or convert it to a palm bitmap before placing on the expansion card, or use a common format (jpeg with libjpeg)

Jacken wrote:
Hey guys:
I am working on an application which needs to display a bitmap file from an expansion card, and when I get the bitmap file data by using VFSFileRead(), then I called WinDrawBitmap(), but it doesn't work... So I tried to ignore the first sizeof(BitmapFileInfo/*BitmapFileInfo structure on PC */) bytes of the the bitmapfile data, then I called WinDrawBitmap(bmpData+sizeof(BitmapFileInfo)), it still won't work...
So guys,how can I get it displayed?
Thanks!



--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to