Sign in to follow this  
Faster than Jesus

D3DX10SaveTextureToFile and 8bit Textures

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
MJP    19753
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

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