ScaleHQ.DotScreen
1.0.0-rc.2
dotnet add package ScaleHQ.DotScreen --version 1.0.0-rc.2
NuGet\Install-Package ScaleHQ.DotScreen -Version 1.0.0-rc.2
<PackageReference Include="ScaleHQ.DotScreen" Version="1.0.0-rc.2" />
<PackageVersion Include="ScaleHQ.DotScreen" Version="1.0.0-rc.2" />
<PackageReference Include="ScaleHQ.DotScreen" />
paket add ScaleHQ.DotScreen --version 1.0.0-rc.2
#r "nuget: ScaleHQ.DotScreen, 1.0.0-rc.2"
#:package ScaleHQ.DotScreen@1.0.0-rc.2
#addin nuget:?package=ScaleHQ.DotScreen&version=1.0.0-rc.2&prerelease
#tool nuget:?package=ScaleHQ.DotScreen&version=1.0.0-rc.2&prerelease
DotScreen
DotScreen is library to get information about system screens in applications without dependency on WinForms or WPF.
Primary console/library projects will benefit using this library as they dont want direct dependency on Winforms nor WPF
Class ScaleHQ.DotScreen.Screen.Screen has almost all properties matching System.Windows.Forms.Screen.
There is only difference in namespace, instead of System.Windows.Forms there is ScaleHQ.DotScreen.Screen.
foreach (var screen in ScaleHQ.DotScreen.Screen.AllScreens)
{
string deviceName = screen.DeviceName;
Rectangle bounds = screen.Bounds;
Rectangle workingArea = screen.WorkingArea;
// rest...
}
In DotScreen there are some additions to Screen class:
- ScaleFactor (double)
- WorkingAreaScaled (RectangleD)
- BoundsScaled (RectangleD)
- SystemVirtualScreen (Rectangle)
- SystemVirtualScreenScaled (RectangleD)
- MultiMonitorSupport (bool)
- IsProcessDPIAware (bool)
- ...
There is not need to add <UseWPF> or <UseWindowsForms> into project (csproj) file when using DotScreen
Source Code
Github repository.
Remark
This library is port of WpfScreenHelper. It avoids dependencies on Windows Forms and WPF libraries.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Drawing.Common (>= 7.0.0)
- System.Drawing.Primitives (>= 4.3.0)
-
net6.0-windows7.0
- System.Drawing.Common (>= 7.0.0)
- System.Drawing.Primitives (>= 4.3.0)
-
net7.0-windows7.0
- System.Drawing.Common (>= 7.0.0)
- System.Drawing.Primitives (>= 4.3.0)
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 |
|---|---|---|
| 1.0.0-rc.2 | 556 | 1/28/2023 |
| 1.0.0-rc.1 | 195 | 1/28/2023 |