Page 1 of 1

Solved [1.12] How to save with an extension other than .png?

Posted: Thu Aug 22, 2019 11:55 am
by ksr921110
OS window 10
Version 1.12
RenderSystem d3d9

Hello
We have even succeeded in storing images as .png using RenderWindow::writecontentsToFile.
But the rate is too slow to store every frame, so I want to change the extension to .bmp or .jpg; other extensions that are not png fail.
It was expected to be a problem with the pixel format, and it changed several times, but it failed.
Is there a solution?

Re: [1.12] How to save with an extension other than .png?

Posted: Thu Aug 22, 2019 3:23 pm
by paroj
use Codec_FreeImage instead of Codec_STBI or patch the latter:
https://github.com/OGRECave/ogre/blob/m ... c.cpp#L112

Re: [1.12] How to save with an extension other than .png?

Posted: Fri Aug 23, 2019 2:40 am
by ksr921110
@
Thank you for your kind reply.
have a good day