grosen@amadeus.ucsb.edu (Mark D. Grosen) (02/12/90)
I am starting to write some Windows programs that require the display of (for example) 8-bit images. Can anyone recommend a fast method to add scanlines (a row of pixels) to a client area? I imagine I have to maintain a bitmap so I can re-paint my window. Do I perform a SetPixel() for each pixel into a memory DC viewing a bitmap? A related question is the issue of palettes. I have not found any mention of how to change the palette the GDI uses. I understand that changing the palette affects the whole screen, but I can live with that, especially if I have a 256 color display. So, how does the palette get manipulated? Thanks for any help. Mark Mark D. Grosen ARPA: grosen@amadeus.ucsb.edu Signal Processing Lab / Communications Research Lab ECE Dept. University of California Santa Barbara, CA 93106