From: "Bradly J. Barton" <[EMAIL PROTECTED]>
Subject: Loading and Displaying a Bitmap Resource


> Does anyone have an example they'd be willing to share on how to load the
> proper bitmap out of a bitmap family and draw it on the screen
dynamically?
> I know I can use DmGetResource to load a bitmap and WinDrawBitmap to draw
> it, but how do I decide which bitmap to load? Should I even use the bitmap
> family to do that?

The whole purpose of using a Bitmap Family is to make it so you don't  have
to pick which bitmap to display.  The OS picks which bitmap to display based
on the current screen bit depth on the device at the time the app executes.
If you want to force it to use a specific bitmap in the family, set the
screen bit depth (with WinScreenMode or ScrDisplayMode) before you call
WinDrawBitmap.



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

Reply via email to