SharpDXScreenshotCapturer ClassDelta Engine Documentation
Takes a screenshot under SharpDX.
Inheritance Hierarchy

System Object
  DeltaEngine.Graphics.SharpDX SharpDXScreenshotCapturer

Namespace: DeltaEngine.Graphics.SharpDX
Assembly: DeltaEngine.Graphics.SharpDX (in DeltaEngine.Graphics.SharpDX.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class SharpDXScreenshotCapturer : ScreenshotCapturer

The SharpDXScreenshotCapturer type exposes the following members.

Constructors

  NameDescription
Public methodSharpDXScreenshotCapturer
Initializes a new instance of the SharpDXScreenshotCapturer class
Top
Methods

  NameDescription
Public methodMakeScreenshot
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.
Top
See Also