I'm working on exactly the same problem right now and this seems to be
working:
UInt32 pixels, npixels;
UInt16 myShort, *bmpBits;
BitmapType *myBitMap;
RGBColorType pixelRGB;
bmpBits = bmpGetBits (myBitMap);
npixels = 320L * 240;
for (pixel = 0; pixel < npixels; pixel++) {
myShort = (*bmpBits);
pixelRGB.r = RED(myShort); // macros to extract color fields from
UInt16
pixelRGB.g = GREEN(myShort);
pixelRGB.b = BLUE(myShort);
...
bmpBits++;
}
I say "seems to" because I'm having trouble getting the packing of RGB bits
in the 16-bit word right. Does anyone know exactly what it is? I'm using CW
9.3 on a Zire 71. I've been blissfully ignorant of ARM/68K endian issues so
far but I suspect it may be coming into play here.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Palm OS
> news group
> Sent: Thursday, March 04, 2004 12:31 PM
> To: Palm Developer Forum
> Subject: How to access bits data of a bitmap larger than 64K?
>
>
> In Palm OS 4.0, we can create a bitmap larger than 64K. But how can we
> access the bits data directly?
>
> I tried BmpGetBits, but the access beyond its 64k failed.
>
> Anybody can help me? Thanks a million in advance.
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/