Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!hub!amadeus.ucsb.edu!grosen From: grosen@amadeus.ucsb.edu (Mark D. Grosen) Newsgroups: comp.windows.ms Subject: Efficient displaying of images with MS Windows? Message-ID: <3913@hub.UUCP> Date: 12 Feb 90 02:12:43 GMT Sender: news@hub.UUCP Reply-To: grosen@amadeus.ucsb.edu (Mark D. Grosen) Organization: University of California, Santa Barbara Lines: 20 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