Screenshot of directX app without window
I'm running DirectX application on the server (Windows Server 2003) and it does not have window (normally, running on PC, it has window). The issue is that I want to take screenshot of it from it (and save it to the png picture). When running on PC, this is working:
Surfac开发者_C百科e backBuff = Device.GetBackBuffer(0, 0, BackBufferType.Mono);
SurfaceLoader.Save(fileName, ImageFileFormat.Png, backBuff);
But on server, the only thing I'm given is black picture (with right size).
Is it possible to take screenshot of directX app without window?
Thank you very much for answers
The solution is quite simple: running the app from script that is running under another user than IIS.
精彩评论