• Advertisement
Sign in to follow this  

Save image from directx framebuffer

This topic is 2877 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement