https://github.com/havendv/h.screenshoter
Allows you to screenshot a screen or a portion of the screen. Supports multiple displays with different scales.
https://github.com/havendv/h.screenshoter
async csharp library physical-screen region screenshot screenshoter
Last synced: 4 months ago
JSON representation
Allows you to screenshot a screen or a portion of the screen. Supports multiple displays with different scales.
- Host: GitHub
- URL: https://github.com/havendv/h.screenshoter
- Owner: HavenDV
- License: mit
- Created: 2021-01-18T19:56:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-18T20:37:26.000Z (almost 5 years ago)
- Last Synced: 2025-07-19T06:35:41.734Z (4 months ago)
- Topics: async, csharp, library, physical-screen, region, screenshot, screenshoter
- Language: C#
- Homepage:
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [H.Screenshoter](https://github.com/HavenDV/H.Screenshoter/)
[](https://github.com/HavenDV/H.Screenshoter/search?l=C%23&o=desc&s=&type=Code)
[](LICENSE.md)
[](https://github.com/dotnet/standard/blob/master/docs/versions/netstandard2.0.md)
[](https://github.com/HavenDV/H.Screenshoter/actions?query=workflow%3A%22.NET%22)
Description
### Nuget
[](https://www.nuget.org/packages/H.Screenshoter/)
```
Install-Package H.Screenshoter
```
### Usage
```cs
using H.Utilities;
var bitmap = Screenshoter.Shot();
var bitmap = await Screenshoter.ShotAsync();
// Rectangle in physical screen coordinates(Without DPI).
// The transmitted coordinates will select the first screen of three HD monitors,
// where the second is specified as primary.
var bitmap = Screenshoter.Shot(Rectangle.FromLTRB(-1920, 0, 0, 1080));
// Helper methods
Screenshoter.GetPhysicalScreens() // returns all screens rectangles.
Screenshoter.GetPhysicalScreenRectangle() // returns global screen rectangle.
```
### Contacts
* [mail](mailto:havendv@gmail.com)