Regarding DIB and Palettes
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I am trying to make a small paint application and want to allow user to draw only in three colors Black, White and Red. I create a 4BPP DIB with a Pallete with White, Black and Red as top three entries and rest all initialized to black. I copy the same Pallete on the Device Context. When I Draw a Line with solid red pen and ROP set to R2_MASKPEN but the line is drawn in white color although it should appear as red. Can anyone help me out here. Regards, Nauman Bin Ali