Sign in to follow this  
hbd760112

Save image from directx framebuffer

Recommended Posts

as the title mentions, I would like to get frame buffer in direcx10, and convert it as image file. I use ID3D10Texture2D , but I still don't know how to use it properly. I use FreeImage to handle image stuff. thanks

Share this post


Link to post
Share on other sites
Its easy:

D3DX10SaveTextureToFile(Backbuffer,D3DX10_IFF_JPG ,L"MyFile.JPG");

D3DX10_IFF_JPG can be D3DX10_IFF_BMP, D3DX10_IFF_PNG, D3DX10_IFF_DDS and more.
Just look it up in the DirectX Documentation.

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