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 -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -