Jump to content
  • Advertisement
Sign in to follow this  
Faster than Jesus

D3DX10SaveTextureToFile and 8bit Textures

This topic is 3629 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

I'm creating batches of 8bit textures that I wish to save to file and currently attempting to use D3DX10SaveTextureToFile with files of format DXGI_FORMAT_R8_UNORM (although I have tried the other 8bit variants) and an output image file format of D3DX10_IFF_BMP, and giving me the error "Can't find matching WIC format." This process works flawlessly using a texture format such as DXGI_FORMAT_R8G8B8A8_UNORM. I could output the file manually, but I suppose I would rather use the API if it provides the mechanism for me. 8-bit is a valid bit depth for a bitmap, so I'm surprised it doesn't work - or more likely, missing something obvious. Also, could anybody tell me what WIC refers to? Cheers.

Share this post


Link to post
Share on other sites
Advertisement
It's entirely possible that the WIC BMP encoder doesn't support 8-bit bitmaps. I'm trying to look through the documentation to see what sort of pixel formats it supports, but haven't found anything useful yet. I'll certainly post it her if I find anything.

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!