Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 4 Jul 2008 03:28:59 -0700 (PDT),    group: microsoft.public.win32.programmer.gdi        back       


switching between offscreen and onscreen drawing   
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
date: Fri, 4 Jul 2008 03:28:59 -0700 (PDT)   author:   Chimanrao

Re: switching between offscreen and onscreen drawing   
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
date: Mon, 7 Jul 2008 00:03:10 +0200   author:   Saju

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us