[结贴]怎么得到 form 图片框的某一点的 rgb 各值?
Point 可以得到 rgb 总和,那怎么分解才得到 r, g, b 各值呢?[此贴子已经被作者于2006-8-5 14:29:31编辑过]
[此贴子已经被作者于2006-8-5 14:29:31编辑过]
RGBColor=picture1.Point(x,y)
RColor= (RGBColor And &HFF)
GColor= (RGBColor And 65535) / 256
BColor= (RGBColor And &HFF0000) / 65535
[此贴子已经被作者于2006-8-5 14:30:06编辑过]