Takes a screenshot under SharpDX.
Inheritance Hierarchy
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
The SharpDXScreenshotCapturer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SharpDXScreenshotCapturer | Initializes a new instance of the SharpDXScreenshotCapturer class |
Methods
Name | Description | |
---|---|---|
MakeScreenshot |
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.
|
See Also