Jump to content
  • Advertisement
Sign in to follow this  
hbd760112

Save image from directx framebuffer

This topic is 3178 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!