java实现屏幕取色
类别: JAVA教程
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();
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();
- 上一篇: java版的SHA-1
- 下一篇: 开放源码-SMTP发信客户端 for Java
-= 资 源 教 程 =-
文 章 搜 索