I'm not sure why you'd want to view the pixel data as a string, but that doesn't
matter. The following should work to get the pixel data that lives in memory after a
BitmapType pointer, assuming your bitmap pointer has data. But YOU MUST be aware of
the caveats that follow the example:
<example>
char *myCharP;
BitmapType *bmpP;
myCharP = (char*)(bmpP + 1);
// and MemMove to your heart's delight
</example>
*Caveats*... the bitmap pointer MAY be followed by the color table (if there is one),
in which case you'd have a char* to the color table. There may be more than one set
of pixel data in the bitmap memory. And if there is NO data following the bitmap ptr,
you're creating NASTY problems for yourself.
trib
______________________________________
David Tribble, Logicon INRI
-----Original Message-----
From: Charles Rezsonya [SMTP:[EMAIL PROTECTED]]
Subject: Bits from images
without os 3.5, to grab the bits from an image you read past the ptr. but
when i go to move it (memmove) i can't figure out how to end up with it in a
char*. i need to end up with the images bits in a char* so i can handle it
as a string, any idea's??
Charles Rezsonya
Palm Developer
ICQ 6470210
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/