Normally Resource.ToFile(device.Context, device.BackBuffer, ImageFileFormat.Png, fileName);
should work, but it only returns a blank background. Doing it manually with BackBuffer
Surface copying or doing a screenshot of the form results in the same. We have to do this
very slow and ugly capture of the whole screen and then grab the section of the window
to get the content of the visible render output. Only needed for SharpDX.
Namespace: DeltaEngine.Graphics.SharpDXAssembly: DeltaEngine.Graphics.SharpDX (in DeltaEngine.Graphics.SharpDX.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- fileName
- Type: System String
Implements
ScreenshotCapturer MakeScreenshot(String)See Also