[求助]自动检测相应坐标(X、Y表示)所对应的RGB值
如何能在form1_load中写入代码,让程序一运行就自动检测相应坐标(X、Y表示)所对应的RGB值。
回复:(cccool)用POINT取得颜色值COLORR...
Dim rgb As Long
Dim r As String, g As String, b As String
rgb = Picture1.Point(8070, 6555)
r = rgb \ &HFF
g = (rgb \ &HFF00) \ &H100
b = (rgb \ &HFF0000) \ &H10000
Text1.Text = "R:" & r & ", G:" & g & ", B:" & b
为什么这段代码返回的RGB为0,0,0?(实际RGB为238,2.32)
问题出在哪,请帮忙看看!