java实现屏幕取色
发表于:2007-07-01来源:作者:点击数:
标签:
Color pixel = new Color(0,0,0);
Robot robot;
Point mousepoint;
int R,G,B;
MouseInfo mouseinfo;
robot = new Robot();
mousepoint = mouseinfo.getPointerInfo().getLocation();
pixel = robot.getPixelColor(mousepoint.x,mousepoint.y);
R = pixel.getRed();
G = pixel.getGreen();
B = pixel.getBlue();
原文转自:http://www.ltesting.net