LPDIRECT3DSURFACE9 pBackBuffer;
if (SUCCEEDED(g_pd3dDevice->GetBackBuffer(0,0,D3DBACKBUFFER_TYPE_MONO,&pBackBuffer)))
{
D3DXSaveSurfaceToFile(L"a.jpg",D3DXIFF_JPG,pBackBuffer,NULL, NULL);
}
D3D API - 截屏
最新推荐文章于 2020-03-11 13:53:32 发布