> i am new to palm programming, I want to display bitmap image on palm device. > I am able to do it through .rcp file, but i want to do it through windrawbitmap( ) > using database. i think i have to store this bitmap image to database resource, > but i am not able to do it. Can anybody help me out in storing bitmap to datbase > and read it to display image. I am using gcc, pilrc, prc tools. OR is there any > other way to display images.
in your .rcp file - declare a bitmap resource: BITMAP, BITMAPFAMILY et al you probably already have done this with the FORMBITMAP tag - so, thats step one. if you want to draw the bitmap dynamically at run-time, then, thats quite easy, you need to use a combination of: DmGetResource MemHandleLock WinDrawBitmap MemHandleUnlock DmReleaseResource you can google for examples, but, there is a palm recipie available on www.palmos.com here: http://www.palmos.com/dev/support/docs/recipes/drawing_bitmap.html http://www.palmos.com/dev/support/docs/recipes/using_winpaintbitmap.html they outline the process using codewarrior/constructor - just ignore that bit; you can do the same on .rcp; and, then look at the code below, specifically: MemHandle hRsc = DmGetResource(bitmapRsc, TestBitmapFamily); BitmapType* bitmapP = (BitmapType*) MemHandleLock(hRsc); WinDrawBitmap(bitmapP, topLeftCoordX, topLeftCoordY); MemHandleUnlock(hRsc); DmReleaseResource(hRsc); viola. be sure to understand whats going on here - and, you'll be fine from there on with most palmos development issues. --- Aaron Ardiri PalmOS Certified Developer [EMAIL PROTECTED] http://www.mobilewizardry.com/members/aaron_ardiri.php -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
