Richard Burmeister wrote in message <34606@palm-dev-forum>...
>
>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.
>

Not intuitively obvious is an understatement.  Here are
two of the biggest oddities that I see off the top of my head:

If you set the size when you create the bitmap family,
why can't constructor use that size automatically when
you create a member?

If you have given the bitmap family an ID, why do you
have to give each bitmap within that family a different
ID?






--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!





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