Image 如何防止打印屏幕截图被洗掉?

Image 如何防止打印屏幕截图被洗掉?,image,powershell,keyboard-shortcuts,gamma,printscreen,Image,Powershell,Keyboard Shortcuts,Gamma,Printscreen,我使用PowerShell命令通过使用bat文件截屏窗口,如下所示: powershell -c "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('%%{PRTSC}')" 但是,结果图像会被洗掉,就好像没有考虑伽马设置一样。 查看图像(左侧)是剪切工具所做的(右侧)是代码所做的 是否有人知道PrintScreen中是否有一个设置可以纠正褪色的颜色

我使用PowerShell命令通过使用bat文件截屏窗口,如下所示:

powershell -c "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('%%{PRTSC}')"
但是,结果图像会被洗掉,就好像没有考虑伽马设置一样。 查看图像(左侧)是剪切工具所做的(右侧)是代码所做的

是否有人知道PrintScreen中是否有一个设置可以纠正褪色的颜色?(我认为这可能与缺乏伽马设置控制有关。)


从我的评论扩展而来---

同样,没有理由从头开始写,除非这是一个学习的东西或猜测。使用已有的资源

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....
...
#>
查找模块-名称“*屏幕*”
#结果
查找脚本-名称“*屏幕*”
#结果

规则也是如此:---这不是PowerShell的问题。它是一个操作系统操作环境。首先,您正在使用的命令无效,将出错<代码>使用“1”参数调用“SendWait”时出现异常:“SendKeys字符串“%%{PRTSC}”无效。”第1行字符:46。这是一个单一的
%
运算符。至于比较这两个运算符,这并不是一个简单的问题。ST特别是一种设计图形工具,PRTSCR不是。据我所知,没有控制PRTSCR。谢谢@postanote。(是的,我是SO的新手,将查看您发布的教程)。我将查看系统gamma设置。我听说双百分比“%%”仅用于打印当前窗口,而不是整个桌面。谢谢,这非常有用