> From: Nicholas Pleis
>
> BITMAPFAMILY ID 1001 "" ""  "" "TableBackground.bmp"
>
> resulted in a properly color bitmap. Is this just the
> way it is?
>

When Palm added support for color bitmaps, they wanted to make it easy for
programmers to create one resource that could handle the various bit depths
(1, 2, 4, 8, and now 16).  So, they created the BITMAPFAMILY.  With a bitmap
family, you can create one bitmap for each of the color depths you care
about and let the OS pick the best bitmap to use at runtime, based on the
current color depth of the device.  So, you don't have to write code like:

if (depth==1_bit)
  WinDrawBitmap( the1bitBitmapPtr, x, y );
else if (depth==2_bits)
  WinDrawBitmap( the2bitBitmapPtr, x, y );
etc..

You can just make 1 call:

  WinDrawBitmap( theBitmapPtr, x, y );

So, saying "this is just the way it is" can be a good thing!


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