Archived

This topic is now archived and is closed to further replies.

32 bit pixels

This topic is 6575 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve written a routine to plot pixels but the colors don''t come out right (i used the RGB macro). I went throught the articles in the programming section and i think i have to convert the RGB values to color values, but all the articles i deal with 16 bit pixels, i need to know how to get the color value for 32 bit pixels. So, can anyone tell me how to convert and RGB value to a color value for a 32 bit pixel.

Share this post


Link to post
Share on other sites
Nevermind i got some code to do it in this article

http://www.gamedev.net/reference/programming/directx/article588.asp

Share this post


Link to post
Share on other sites