从一组图片(300张以上)中取N个坐标点(2000左右)的颜色!-------------------------------------------
| . . . . . . . . . . |
| . . . . . . . . . . . . |
| . . . . . . . . . . . . . . |
| . . . . . . . . . . . . . |
|. . . . . ... . . . . . . .|
| ..... ... ...... .. .... . . . . . |
| . . . . . . . . . . . . . . .|
-------------------------------------------坐标位置没有规则!谢谢
| . . . . . . . . . . |
| . . . . . . . . . . . . |
| . . . . . . . . . . . . . . |
| . . . . . . . . . . . . . |
|. . . . . ... . . . . . . .|
| ..... ... ...... .. .... . . . . . |
| . . . . . . . . . . . . . . .|
-------------------------------------------坐标位置没有规则!谢谢
ScreenDC := GetDC(0);
ScreenColor := GetPixel(ScreenDC, Pos.X, Pos.Y);
//Shape.Brush.Color := TColor(ScreenColor);
edit1.Text := '红: ' + IntToStr(GetRValue(ScreenColor)) +
' 绿: ' + IntToStr(GetGValue(ScreenColor)) + ' 蓝: ' +
IntToStr(GetBValue(ScreenColor));
ReleaseDC(0, ScreenDC);
edit2.Text := Format('Delphi中颜色值:$00%2.2x%2.2x%2.2x', [GetBValue(ScreenColor),
GetGValue(ScreenColor), GetRValue(ScreenColor)]);