|
Color with Directx and 16-bit RGB
Hey,
I have a function called DrawPixel. It draws a pixel at a certain location with a certain color. I am using in 16bit mode, not Paletized. My problem is this:
Now, I was trying to get some bluish color, but instead I always get pink. No matter what those values in the RGB thing are except when I set them all to 0s. Is there a different way to set the color?
Thanks.
16 bit color is 1 word per pixel, not a double word. The Win32 RGB macro can only create dwords, so you''ll have to write your own macro to get 16 bit color in whatever format you happen to be using (565 probably).
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/ (If my website isn''t down, it''s a miracle!)
![Resist Windows XP''s Invasive Production Activation Technology!](http://druidgames.warfactory.com/Out_Source/resist.jpg)
http://druidgames.cjb.net/ (If my website isn''t down, it''s a miracle!)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement