HScreenCapture 0.2.0

dotnet add package HScreenCapture --version 0.2.0
NuGet\Install-Package HScreenCapture -Version 0.2.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="HScreenCapture" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HScreenCapture --version 0.2.0
#r "nuget: HScreenCapture, 0.2.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 HScreenCapture as a Cake Addin
#addin nuget:?package=HScreenCapture&version=0.2.0

// Install HScreenCapture as a Cake Tool
#tool nuget:?package=HScreenCapture&version=0.2.0

HScreenCapture

Simple screen and window capture

Getting Started

private void button1_Click(object sender, EventArgs e)
{
	// Initialize HScreenCapture class
	HScreenCapture.Main hsc = new HScreenCapture.Main();

	// Screen capture a window
	// Use Microsoft Spy++ to get the window class and caption
	// Sample window Class: "Notepad"
	// Sample window caption: "*Untitled - Notepad" 
	var image = hsc.GetImage("*Untitled - Notepad" "Notepad");

	// Save image to clipboard
	hsc.SaveToClipboard(image);
}
# API:
HScreenCapture.Main hsc = new HScreenCapture.Main();

// To screen capture a screen
var image = hsc.GetImage();

// To screen capture a window
// Use Microsoft Spy++ to get the windowClassName & windowMainTitle
var image = hsc.GetImage(windowClassName, windowMainTitle);

// To save image to clipboard
hsc.SaveToClipboard(image);

// To save image to PNG
hsc.SaveToPNG(filePath, image);

// To save image to file
hsc.SaveToFile(filePath, image, ImageFormat.Png);

Microsoft Spy++

Sample Spy++

Prerequisities

.NET Framework 4.5

Installing

https://www.nuget.org/packages/HScreenCapture/

Built With

Visual Studio 2017

License

See LICENSE file

Github

https://github.com/herbertagosto/HScreenCapture

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • 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
0.2.0 263 10/25/2023
0.1.0 108 10/24/2023

Change target framework