注册 登录
编程论坛 VB6论坛

求高手看看 这样写是否正确

compdnycdke 发布于 2013-04-22 18:06, 343 次点击
If (PicData(0, dwX, dwY) = crColor.rgbBlue) And (PicData(1, dwX, dwY) = crColor.rgbGreen) And (PicData(2, dwX, dwY) = crColor.rgbRed) Then
If (PicData(0, dwX + 10, dwY - 10) = crColor.rgbBlue) And (PicData(1, dwX + 10, dwY - 10) = crColor.rgbGreen) And (PicData(2, dwX + 10, dwY - 10) = crColor.rgbRed) Then

第2句 是不是在判断第一句的点的位置上偏移10,-10个单位的颜色呢
0 回复
1