From: <[EMAIL PROTECTED]>

> I create a color bitmap (depth 8), size 160X160 to be drawn at 0,0.
>
> I didn't do bitmap families because I can't figure out how to create them,
> other than specifying size.

You must use a bitmap family if you want to display a color bitmap.  In
Constructor, highlight Bitmap Families and press ctrl-K to create one.  Then
open it and set its size to 160x160.  Then highlight Family Items and press
ctrl-K to create one. Then set its bit depth to 8 and give it an ID that
isn't already in use for another bitmap, then click the Create button.  Set
the size of the bitmap to 160x160 (using Options|Set Image Size... on the
menu), then paste in your color bitmap and save everything.  (You can create
up to 4 bitmaps in the same bitmap family, one for each depth you want to
support (1, 2, 4, or 8 bits).  When you want to draw your bitmap, use the ID
of the Bitmap Family.  The OS will pick the highest bit depth that the
device your app is running on can currently display (based on the bit-depth
setting of the device).

I recognize that the steps above are not intuitively obvious for anyone not
familiar with the very non-standard interface that CodeWarrior uses on a PC,
hence the detailed explanation.



-- 
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