mika-f / dotnet-window-capture Goto Github PK
View Code? Open in Web Editor NEWCaptures a window or desktop screen and renders it in WPF or DirectX.
License: MIT License
Captures a window or desktop screen and renders it in WPF or DirectX.
License: MIT License
I am using Windows 11 22H2 with NVidia graphics.
Trying to capture Edge, VS Code or video games (I tried on Dota 2) just returns blank texture.
I find it slightly weird as their windows have proper thumbnails in Win+Tab and the taskbar, which hints that DWM actually has their surfaces of some kind.
I have been trying to compile DwmSharedSurface Sample from the repo, but sharp dx is throwing exception like this:
SharpDX.SharpDXException: 'HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.'
I tried changing shader file location but it still throw exception here:
using var vertexShader = new VertexShader(device, vertexShaderByteCode);
Could you please resolve this issue
Hey checked the code for DwmThumbnail, It seems like you directly push the frame to the WPF window.
Is there any way to export the frame to an image?
Thanks.
SharpDX has no longer been maintained, replace implementations with Vortice.Windows.
Severity Code Description Project File Line Suppression State
Error NETSDK1149 WinRT.GraphicsCapture.exe cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149 MyApp C:\Program Files\dotnet\sdk\7.0.401\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets 1047
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.