|
| |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
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(); 返回类别: 教程 上一教程: Refactoring Notes-Refactoring Methods(3) 下一教程: 一个用来保存参数的容器类 您可以阅读与"java实现屏幕取色"相关的教程: · 一个简朴的用JAVA实现的屏幕抓图(源代码) · 《Java编程思想》(第二版)第5章:隐藏实现细节 · 在JAVA中实现浮点数的精确计算 · Java分布式事务概念与实现示例 · 生产者消费者模型的JAVA简朴实现 |
| 快精灵印艺坊 版权所有 |
首页 |
||