vb入门 vb如何在屏幕上找到指定的颜色?
vb如何在屏幕上找到指定的颜色?只能逐点查找,先捕获屏幕,然后使用点方法逐点进行颜色对比。使用点方法,表单颜色代码:privatesubform1uuuMouseMove(buttonasintege
vb如何在屏幕上找到指定的颜色?
只能逐点查找,先捕获屏幕,然后使用点方法逐点进行颜色对比。使用点方法,表单颜色代码:privatesubform1uuuMouseMove(buttonasinteger,shiftasinteger,xassingle,yassingle)text1=xtext2=ytext3=point(x,y)Text4=(Val(Text3)mod65536)mod256”redtext5=(Val(Text3)mod65536)256”greentext6=Val(Text3)65536”blueshape1。填充颜色=RGB(Val(文本4),Val(文本5),Val(Text6))endsubpicturebox颜色代码:privatesuppicture1uMouseMove(ButtonAsInteger,ShiftAsInteger,XAsSingle,YAsSingle)Text1=XText2=YText3=Picture1点(X,Y)Text4=(Val(Text3)Mod65536)Mod256”RedText5=(Val(Text3)Mod65536)256”GreenText6=Val(Text3)65536”BlueShape1。FillColor=RGB(Val(Text4),Val(Text5),Val(Text6))EndSub
怎么通过图片找色号?
您可以使用PS软件查找颜色编号,打开PS,将图片放到PS工作框中,并使用画笔吸收颜色来知道颜色编号。