如何检查屏幕区域以查看是否具有特定颜色? [英] How Do I Check An Area Of A Screen To See If It Has A Specific Color?
本文介绍了如何检查屏幕区域以查看是否具有特定颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个宏,并希望c#代码检查屏幕区域是否具有特定颜色。这可以吗?
解决方案
是的,当然。其中一种方法是使用System.Drawing.Graphics.Graphics.CopyFromScreen
:
http://msdn.microsoft.com/en-us/library/system.drawing。 graphics.copyfromscreen%28v = vs.110%29.aspx [ ^ ]。
-SA
I want to make a macro and want c# code to check if an area of a screen has a specific color. can this be done?
解决方案
Yes, of course. One of the ways to do it is usingSystem.Drawing.Graphics.Graphics.CopyFromScreen
:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.copyfromscreen%28v=vs.110%29.aspx[^].
—SA
这篇关于如何检查屏幕区域以查看是否具有特定颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文