hi I have a piece of code which does offscreen drawing, its raster based drawing. 1. I create a offscree bitmap using CreateDIBSection 2. Get the bits for this bitmap. 3. fill the bits based on the algorithm 4. In WM_PAINT, bitblt this offscreen bitmap. I want to able to switch between offscreen and onscreen rendering. for this I want to get the bits of the bitmap thats currently loaded in the DC so that when change the pixels they show on the screen immediately. This allows for easy debugging. how do I do this? Chimanrao
Not clear about your actual purpose here... but if you really want to manipulate offscreen and onscreen buffers then you should look into directdraw in DirectX. "Chimanrao" > hi > > I have a piece of code which does offscreen drawing, its raster based > drawing. > > 1. I create a offscree bitmap using CreateDIBSection > 2. Get the bits for this bitmap. > 3. fill the bits based on the algorithm > 4. In WM_PAINT, bitblt this offscreen bitmap. > > I want to able to switch between offscreen and onscreen rendering. > for this I want to get the bits of the bitmap thats currently loaded > in the DC so that when change the pixels they show on the screen > immediately. This allows for easy debugging. > > how do I do this? > > Chimanrao