How do I stop my Printscreen screengrabs from being washed out?

184 Views Asked by At

I am using a PowerShell command to screengrab a window by using a bat file as follows:

powershell -c "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('%%{PRTSC}')"

However, the resulting image is washed out as if the Gamma setting is not taken in to account. See images (Left side) is what the snipping tool does (Right side) is what the code does.

Does anyone know if there is a setting within PrintScreen that corrects for the washed-out-ness? (which I think is probably to do with the lack of Gamma Setting control.)

Image captured using the Snipping tool(Left) and image captured using the PowerShell code (Right)

1

There are 1 best solutions below

1
On

Extending from my comment ---

Again, no reason to write from scratch, unless it's a learning thing or guess at it. Use what is already available.

Find-Module -Name '*screen*'
# Results
<#
Version      Name                              Repository Description             
-------      ----                              ---------- -----------             
1.0.2        windows-screenfetch               PSGallery  Powershell port of the Bash Screenshot Information Tool                              
1.2          ChangeScreenResolution            PSGallery  This module give tools to change screen resolution from PowerShell console on Windows
...              
1.0          PSScreenshot                      PSGallery  Save a screenshot from PowerShell.
...               
1.0.8        psScreenRecorder                  PSGallery  Desktop Video Capture with PowerShell
...                     
#>

Find-Script -Name '*screen*'
# Results
<#
Version Name                                      Repository Description                                                 
------- ----                                      ---------- -----------                                                 
1.0.0.2 Save-ScreenCapture                        PSGallery  Capture and save one or more screens to a file as a .JPG....
...
#>