开发者

Screenshot of directX app without window

开发者 https://www.devze.com 2023-02-03 10:52 出处:网络
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 (an

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消