¡@

Home 

c++ Programming Glossary: prendertarget

How do I clear a Direct2D render target to fully transparent

http://stackoverflow.com/questions/2603276/how-do-i-clear-a-direct2d-render-target-to-fully-transparent

I'm using in my WindowProc case WM_PAINT Begin drawing pRenderTarget BeginDraw pRenderTarget SetTransform D2D1 Matrix3x2F Identity.. case WM_PAINT Begin drawing pRenderTarget BeginDraw pRenderTarget SetTransform D2D1 Matrix3x2F Identity Clear the window pRenderTarget.. SetTransform D2D1 Matrix3x2F Identity Clear the window pRenderTarget Clear Paint the panel and its children D2DSurface StartPainting..

Fastest method of screen capturing

http://stackoverflow.com/questions/5069104/fastest-method-of-screen-capturing

thanks to whoever void dump_buffer IDirect3DSurface9 pRenderTarget NULL IDirect3DSurface9 pDestTarget NULL const char file Pickture.bmp.. render target surface. HRESULT hr Device GetRenderTarget 0 pRenderTarget get the current adapter display mode. hr pDirect3D GetAdapterDisplayMode.. to the destination surface. hr Device GetRenderTargetData pRenderTarget pDestTarget save its contents to a bitmap file. hr D3DXSaveSurfaceToFile..