Compunet.ScreenCapture 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Compunet.ScreenCapture --version 2.0.0
NuGet\Install-Package Compunet.ScreenCapture -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Compunet.ScreenCapture" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Compunet.ScreenCapture --version 2.0.0
#r "nuget: Compunet.ScreenCapture, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Compunet.ScreenCapture as a Cake Addin
#addin nuget:?package=Compunet.ScreenCapture&version=2.0.0

// Install Compunet.ScreenCapture as a Cake Tool
#tool nuget:?package=Compunet.ScreenCapture&version=2.0.0

ScreenCapture

Pure WPF library for screen/window capture (for windows only)

Use

  • capture full screen to ImageSource object
var screenCapture = new ScreenCaptureService();
var imageSource = screenCapture.CaptureScreen().GetImageSource();
  • capture a window to image bytes data
var screenCapture = new ScreenCaptureService();
byte[] raw = screenCapture.CaptureWindow(hWnd).GetBytes();
  • capture full screen to file
var screenCapture = new ScreenCaptureService();
screenCapture.CaptureScreen().WriteToFile(path);

License

MIT License

Author

dme-compunet

Product Compatible and additional computed target framework versions.
.NET net7.0-windows7.0 is compatible.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 288 3/8/2023
2.1.0 205 3/8/2023
2.0.0 217 3/7/2023
1.0.0 214 3/5/2023