确保 8 位颜色窗口的不同实例之间的颜色一致性?
我正在做一些古怪的事情。基本上我有一堆运行 Windows XP 8 位模式的虚拟机,我想时不时地对运行的虚拟机进行屏幕截图。我希望屏幕截图尽可能一致,精确到像素,因此,例如,如果同一个应用程序在两个虚拟机中运行,则该应用程序在两个虚拟机中应该具有相同的颜色。然而,似乎只有 Windows 可以直接访问调色板,并且似乎它将其设置为它认为最好的任何内容,这在虚拟机的不同实例中可能会有所不同......我注意到应用程序会略有不同例如,如果我更改虚拟机的背景颜色,则会出现不同的像素,但即使在具有相同背景颜色的虚拟机上,它们也会有所不同。
那么,有什么方法可以根据我的需要设置调色板,或者通过其他方式确保这些屏幕截图一致?
I'm doing something wacky. Basically I have a bunch of VMs with Windows XP in 8-bit mode, and I want to take screenshots of the VMs running every so often. I would like the screenshots to be as consistent as possible, down to the pixel, so for example if the same app is running in two VMs, the app should have the same colors in both. However, it seems only Windows has direct access to the palette, and it seems that it sets it to whatever it feels is best, which could be different across different instances of the VM... I've noticed that an app will have slightly different pixels if I change the background color of the VM, for example, but even on VMs with the same background color, they differ.
So, is there any way to set the palette as I want, or by some other means ensure these screenshots are consistent?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
祝你好运。我尝试在同一虚拟机上比较两次不同测试运行之间的颜色和像素,但即使这样也并不总是匹配。 (我正在使用 TestComplete 并尝试进行自动化测试来验证 UI 组件是否匹配。)
Good luck. I've tried comparing colors and pixels between two different test runs, on the SAME VM, and even that doesn't always match. (I was using TestComplete and trying to make an automated test to verify UI components matched.)