Public/Functions/split/Get-DisplayPrimaryBitmapSize.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
function Get-DisplayPrimaryBitmapSize { [CmdletBinding()] param () $GetDisplayPrimaryMonitorSize = Get-DisplayPrimaryMonitorSize $GetDisplayPrimaryScaling = Get-DisplayPrimaryScaling foreach ($Item in $GetDisplayPrimaryMonitorSize) { [int32]$Item.Width = [math]::round($(($Item.Width * $GetDisplayPrimaryScaling) / 100), 0) [int32]$Item.Height = [math]::round($(($Item.Height * $GetDisplayPrimaryScaling) / 100), 0) } Return $GetDisplayPrimaryMonitorSize } |