> 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. ----- Original Message ----- From: "Logan Shaw" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[email protected]> Sent: Monday, September 26, 2005 9:40 PM Subject: Re: Need to access resources from VFS. > Deepak.MA wrote: > > Thanks a ton Logan. Ive managed to sync a few bmps into the VFS and am able > > to see the files exist there also(using FileZ). But my concern is that how > > do we get the whole image to be displayed on the screen. > > > > Ive read ur suggestion on using the VFSFileRead operation. But how do you > > think this can be rendered on the screen finally. > > Something like this: > > #include <PalmOSGlue.h> > > BitmapPtr bitmapptr; > Int32 bitmapsize; > Int32 remainder; > > VFSFileOpen (......); > bitmapsize = VFSFileSize(......); > bitmapptr = (BitmapPtr) MemGluePtrNew (bitmapsize); > if (bitmapptr == NULL) > { > /* not enough space */ > } > > remainder = bitmapsize; > while (remainder > 0) > { > /* read to the right position within the buffer */ > VFSFileRead (......); > > remainder -= how_much_you_read; > } > > VFSFileClose (......); > > WinDrawBitmap (bitmapptr, x, y); > MemPtrFree (bitmapptr); > > By the way, I assume you're reading a PALM bitmap from this file, not > a WINDOWS bitmap, right? > > - Logna > > -- > 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/
