Sign in to follow this  

strecht surface?

Recommended Posts

hi i have a problem with getting a screenshot of a specific part of the screen. i use IDirect3DSurface9* backbuffer; pD3DDevice->GetBackBuffer(0,0,D3DBACKBUFFER_TYPE_MONO,&backbuffer); D3DXSaveSurfaceToFile("test.bmp", D3DXIFF_BMP, backbuffer, NULL, NULL); to take a screenshot, but i just want to save a part of the backbuffer. i have tried StretchRect(IDirect3DSurface9 *pSourceSurface, CONST RECT *pSourceRect, IDirect3DSurface9 *pDestSurface, CONST RECT *pDestRect, D3DTEXTUREFILTERTYPE Filter ) but it dosn't work... thanks for your help thomas

Share this post

Link to post
Share on other sites
thanks, i know that acticle but it does not realy solve my problem, because it doesn't work anymore in directx 9 in that way
in directx you just have to call
and that's it you have your screenshot.
for the function
device->CreateImageSurface(screenx, screeny, D3DFMT_A8R8G8B8, &pDestSurface);
is a similar in directx 9
but if i call it before GetBackBuffer my programm crashs...


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this