At 12:03 AM 10/9/2004, you wrote:
Hey!

I've worked for months on trying to get an image to display. It's a simple 12x12 256-color bitmap. I can import it into a folder in my project, but I can't display it.

I tried displaying it using WinPaintBitmap, but i can't put the bitmap into a BitmapType. Can someone give me the url to a tutorial to bitmaps with PODS, or tell me how to get the bitmap into a BitmapType function?

Have you added the bitmap to your XRD file using the editor? Just having the BMP file in your project isn't sufficient, you need to bind it to a resource using a bitmap family in your XRD file. If so, you need to lock the bitmap's resource in memory using DmGetResource/MemHandleLock, and then cast that locked pointer to a BitmapType * and pass it to WinDrawBitmap.



-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/


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

Reply via email to