{"id":26681323,"url":"https://github.com/thesimonho/windowscapture","last_synced_at":"2026-05-09T04:34:00.481Z","repository":{"id":114864691,"uuid":"535962517","full_name":"thesimonho/WindowsCapture","owner":"thesimonho","description":"Helpers for working with DXGI-based screen capture","archived":false,"fork":false,"pushed_at":"2022-11-05T03:14:08.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T07:15:20.713Z","etag":null,"topics":["csharp","dotnet","dxgi","screen-capture"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesimonho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-13T04:48:45.000Z","updated_at":"2024-10-14T09:21:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba88a7c1-dda4-4e16-87de-1ef93f508f62","html_url":"https://github.com/thesimonho/WindowsCapture","commit_stats":null,"previous_names":["thesimonho/windowscapture"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thesimonho/WindowsCapture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesimonho%2FWindowsCapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesimonho%2FWindowsCapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesimonho%2FWindowsCapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesimonho%2FWindowsCapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesimonho","download_url":"https://codeload.github.com/thesimonho/WindowsCapture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesimonho%2FWindowsCapture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","dxgi","screen-capture"],"created_at":"2025-03-26T07:15:21.018Z","updated_at":"2026-05-09T04:34:00.456Z","avatar_url":"https://github.com/thesimonho.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windows Capture\n\nThis repo is a fork of [Lvhang.WindowsCapture](https://github.com/wanglvhang/OnnxYoloDemo/tree/main/Lvhang.WindowsCapture), updated to work with the new Windows App SDK / WinUI3 namespaces.\n\nThis package is for Windows only, so please make sure your project's TFM is later than `net6.0-windows10.0.19041.0`:\n\n`\u003cTargetFramework\u003enet6.0-windows10.0.19041.0\u003c/TargetFramework\u003e`\n\n## Original work\n\nRepo: https://github.com/wanglvhang/OnnxYoloDemo/tree/main/Lvhang.WindowsCapture\n\nNuget package : https://www.nuget.org/packages/Lvhang.WindowsCapture/\n\n**1.1.0 (2021/10/30) release note:**\n\n* fix a bug which the ToBitmap extension method not work on some hardware.\n* add IsManual options, by default IsManual is true and you need to call nextFrame to get next frame.\n* add nextFrame action in OnFrameArrived to control if send next frame.\n* when you call PickAndCapture, you can pass an action that will run after user choose a windows/desktop and before receive first frame.\n\nSample code:\n\n```C#\n_captureSession = new WindowsCaptureSession(this, new WindowsCaptureSessionOptions()\n{\n    //set minial ms between frames\n    MinFrameInterval = 50,\n    IsManual = true,\n});\n\n_captureSession.OnFrameArrived += CaptureSession_OnFrameArrived;\n\n_captureSession.PickAndCapture();\n\n//CaptureSession_OnFrameArrived method\nprivate async void CaptureSession_OnFrameArrived(Windows.Graphics.Capture.Direct3D11CaptureFrame frame, Action nextFrame)\n{\n    var bitmap = obj.ToBitmap();\n\n    //do something\n\n    nextFrame(); //enable to get next frame, if IsManual is set to false, you don't have to call this method to get next frame.\n}\n```\n\nThis project is based on the below projects:\n\nhttps://github.com/robmikh/\n\nhttps://github.com/Microsoft/Windows.UI.Composition-Win32-Samples/tree/master/dotnet/WPF/ScreenCapture\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesimonho%2Fwindowscapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesimonho%2Fwindowscapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesimonho%2Fwindowscapture/lists"}