> BITMAPFAMILYEX ID 2000
> BEGIN
> BITMAP "sprt/sprites/s000.bmp" BPP 8 DENSITY 2 BITMAPPALETTE "palette.make"
> NOCOMPRESS TRANSPARENT 255 0 255
> BITMAP "blank.bmp" BPP 8 NOCOMPRESS
> END
>
> but if i try to access bitmap bits using BmpGetBits it returns data from the
> "blank.bmp" image.
>
> How can i access bits from DENSITY 2 bitmap ?
BmpGetNextBitmap()
there is a special order in which the bitmaps are stored in the
bitmap families. and, your DENSITY 1 bitmap comes before the DENSITY 2
bitmap :) so, instead of:
ptr = BmpGetBits(myBmp);
you should do:
if (BmpGetNextBitmap(myBmp) != NULL)
ptr = BmpGetBits(BmpGetNextBitmap(myBmp));
else
ptr = BmpGetBits(myBmp);
in your specific case (if you only store single depth, multi density)
you should be able to figure the reset you from there :)
some more API's of interest:
BmpGetDensity()
---
Aaron Ardiri
[EMAIL PROTECTED]
http://www.mobilewizardry.com/members/aaron_ardiri.php [profile]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/