I know you have to type cast the value to something. But in ur example when
u make it return UInt8. What does this value represent, a pixel? If so what
pixel and how do u control what pixel data is returned. Also do u change the
color value of the pixel in rgb format? Can someone please show me an
example of how to change color of one pixel from a 8 bit bitmap? Any help
would be greatly appreciated!

----- Original Message ----- 
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Saturday, November 20, 2004 7:13 AM
Subject: Re: BmGetBits() return value?


> > Hey, Im kinda of a newb but in my application i want to access the bmp
data.
> > The docs say BmGetBits does the job but it returns a void * value. What
data
> > type am i supposed to cast this to? Thanks
>
> its a void * because it isn't known if your bitmap is 16bit, 8bit, etc.
> if you know it is 8bit, you can then do:
>
>   UInt8 *bits = (UInt8 *)BmpGetBits(bmp);
>
> and, manipulate bits direct as an UInt8 pointer. anything "void *" is
> meant to be type-cast into whatever it needs to be eventually :)
>
> ---
> Aaron Ardiri (Skype:: callto://ardiri)
> PalmOS Certified Developer
> [EMAIL PROTECTED]
> http://www.mobilewizardry.com/members/aaron_ardiri.php
>
> -- 
> 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/

Reply via email to