24 bit to 8 bit bitmap

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 18/06/2003 at 11:52, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.100 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,
how can I convert a 24 bit bitmap to an 8 bit bitmap? Can I just initialize an 8 bit bitmap and copy the 24 bit bitmap to the 8 bit bitmap?
And bitmap->GetLine does always return the line in 24-bit. How can I then use it for 8bit bitmaps?
Thanks

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/06/2003 at 13:20, xxxxxxxx wrote:

1. Did you try?
2. GetLine() always returns 24 bit values, so you have to convert them to 8 bit values yourself.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/06/2003 at 16:31, xxxxxxxx wrote:

1. Sure 🙂 Didn´t work.
2. how? "quote": how can I convert a 24 bit bitmap to an 8 bit bitmap?;)
Thanks in advance

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 22/06/2003 at 07:32, xxxxxxxx wrote:

Ok, forget it. 🙂