MonitorDetails 1.0.0
dotnet add package MonitorDetails --version 1.0.0
NuGet\Install-Package MonitorDetails -Version 1.0.0
<PackageReference Include="MonitorDetails" Version="1.0.0" />
paket add MonitorDetails --version 1.0.0
#r "nuget: MonitorDetails, 1.0.0"
// Install MonitorDetails as a Cake Addin #addin nuget:?package=MonitorDetails&version=1.0.0 // Install MonitorDetails as a Cake Tool #tool nuget:?package=MonitorDetails&version=1.0.0
Monitor Details Reader
Retrieves current settings and useful information about the monitors connected to the host computer, including pixel dimensions, physical measurements, EDID, monitor handles, and virtual screen coordinates.
Credit to Ofek Shilon for his blog posts on how to get the physical dimensions of a specific monitor using Visual C++. This is basically a C# port of his code using PInvoke, with some extra functionality added to get DPI scaling factors, physical pixel dimensions, and EDID properties.
Targets .NET Framework 4.6.1.
Usage
Create an instance of Reader
and call the GetMonitorDetails
method:
using MonitorDetails;
using MonitorDetails.Models;
...
IReader reader = new Reader();
IEnumerable<Monitor> monitors = reader.GetMonitorDetails();
...
Remarks
A test console program (MonitorDetailsReader.Test
) is included that when run prints out most of the useful information for each monitor.
Monitors vary far and wide, so your mileage may vary with this reader. If you have any improvements you'd like to share, feel free to submit a pull request!
Uses EDIDParser to make sense of monitors' EDID.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.1
- EDIDParser (>= 1.2.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MonitorDetails:
Package | Downloads |
---|---|
VL.SuperMonitor
This library wraps allanrodriguez' MonitorDetailsReader and builds small useful utils on top of it |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 2,662 | 7/18/2019 |