[英]How do I stop my Printscreen screengrabs from being washed out?
我正在使用 PowerShell 命令通過使用 bat 文件來截屏 window,如下所示:
powershell -c "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('%%{PRTSC}')"
但是,生成的圖像會被洗掉,就好像沒有考慮 Gamma 設置一樣。 查看圖片(左側)是截圖工具的作用(右側)是代碼的作用。
有誰知道 PrintScreen 中是否有可以糾正褪色的設置? (我認為這可能與缺少 Gamma 設置控制有關。)
從我的評論延伸---
同樣,沒有理由從頭開始編寫,除非它是學習的東西或猜測它。 使用已經可用的東西。
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....
...
#>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.