Original Post
I read this article : http://www.gamedev.net/reference/articles/article1844.asp
And I tried to modify it to save to a jpg instead of bmp file. It will only save as a bmp. If I change to this:
D3DXSaveSurfaceToFile(filename, D3DXIFF_JPG, frontbuf, NULL, NULL);
it doesn''t save at all. Do I need a palette or anything to save as JPG or do I just need to get my front buffer in the correct format here:
d3dDevice->CreateImageSurface(screenWidth, screenHeight, D3DFMT_A8R8G8B8, &frontbuf);
Does anyone know what format it would be?
Or is it something else? Thanks.