D3D API - 截屏

    LPDIRECT3DSURFACE9 pBackBuffer;
    if (SUCCEEDED(g_pd3dDevice->GetBackBuffer(0,0,D3DBACKBUFFER_TYPE_MONO,&pBackBuffer)))
    {
     D3DXSaveSurfaceToFile(L"a.jpg",D3DXIFF_JPG,pBackBuffer,NULL, NULL);
    }

你可能感兴趣的:(api)