HScreenCapture 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package HScreenCapture --version 0.1.0
NuGet\Install-Package HScreenCapture -Version 0.1.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.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HScreenCapture --version 0.1.0
#r "nuget: HScreenCapture, 0.1.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.1.0

// Install HScreenCapture as a Cake Tool
#tool nuget:?package=HScreenCapture&version=0.1.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 Standard netstandard4.5 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 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 271 10/25/2023
0.1.0 111 10/24/2023

New release