c++ - Backbuffer data display -


i trying read backbuffer data desktop screen capture using getbackbuffer , display on window.i have intialised directx , registered window class. problem in displaying data reads.i black window code snippet using now.could me in working out.

idirect3dsurface9 *offscreensurface = 0; d3ddev->createoffscreenplainsurface(1366, 768, d3dfmt_a8b8g8r8, d3dpool_default, &offscreensurface, null);    hresult hr1 = d3ddev->createrendertarget(1366, 768, d3dfmt_a8r8g8b8, d3dmultisample_none, 0, true, &offscreensurface, null);    hresult hr = d3ddev->getbackbuffer(0, 0, d3dbackbuffer_type_mono, &offscreensurface);   } 


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -