Answered by:
Using C++, How would it be possible to convert a .dds image to a .png image?

Question
-
Using C++, I would like to find a .dds image and convert it to a .png image in a button click. I am very new to C++ and I know C# way better so I don't have a code to give you. Also if this helps, I would like to let you know that I am using a CLR Empty Project with Windows Forms in Visual Studio.
Apart from this question itself, I asked this on Stack Overflow and got condemned by getting docked five points because I am an imperfect human who is expected to ask perfect questions which is impossible and they don't accept that. This ticks me off so much so I came here. Anyone who even tries to answer my question here is thanked so much because obviously Stack Overflow hates imperfect people and you must make up to their standards in order to be accepted there. Thanks for everyone who answers my question.
- Edited by LC Creations Media Friday, April 29, 2016 1:52 AM
- Moved by Herro wongMicrosoft contingent staff Friday, April 29, 2016 7:59 AM
Friday, April 29, 2016 1:51 AM
Answers
-
Try this sample: https://code.msdn.microsoft.com/windowsdesktop/DirectX-11-Texture-fecd4824. Compile it, but replace ‘vector<const Image>’ with ‘vector<Image>’ if it gives errors. It will generate the command-line tool “texconv.exe”.
Also consider this library: http://directxtex.codeplex.com/. Load, for example, the “DirectXTex_Desktop_2015.sln” solution, and build. It will also generate the command-line tool “texconv.exe”.
Check any of the above “textconv.exe” tool. Sample command: “textconv MyFile.dds -ft png”.
Check the licences and see if you can reuse the code that can be found inside the wmain functions of Texconv.cpp files. I think that it should work in C++/CLR projects too.
- Edited by Viorel_MVP Friday, April 29, 2016 12:02 PM
- Proposed as answer by Hart Wang Tuesday, May 3, 2016 7:11 AM
- Marked as answer by Hart Wang Thursday, May 5, 2016 8:25 AM
Friday, April 29, 2016 12:01 PM
All replies
-
Hello,
I think this thread is related to VC technology. I am helping to move it to VC forum.
Thank you for your understanding.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Friday, April 29, 2016 7:58 AM -
Try this sample: https://code.msdn.microsoft.com/windowsdesktop/DirectX-11-Texture-fecd4824. Compile it, but replace ‘vector<const Image>’ with ‘vector<Image>’ if it gives errors. It will generate the command-line tool “texconv.exe”.
Also consider this library: http://directxtex.codeplex.com/. Load, for example, the “DirectXTex_Desktop_2015.sln” solution, and build. It will also generate the command-line tool “texconv.exe”.
Check any of the above “textconv.exe” tool. Sample command: “textconv MyFile.dds -ft png”.
Check the licences and see if you can reuse the code that can be found inside the wmain functions of Texconv.cpp files. I think that it should work in C++/CLR projects too.
- Edited by Viorel_MVP Friday, April 29, 2016 12:02 PM
- Proposed as answer by Hart Wang Tuesday, May 3, 2016 7:11 AM
- Marked as answer by Hart Wang Thursday, May 5, 2016 8:25 AM
Friday, April 29, 2016 12:01 PM