MonitorDetails 1.0.0

dotnet add package MonitorDetails --version 1.0.0                
NuGet\Install-Package MonitorDetails -Version 1.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="MonitorDetails" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonitorDetails --version 1.0.0                
#r "nuget: MonitorDetails, 1.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 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

Build status Coverage Status

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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,581 7/18/2019