- package cn.seejava.lei2;
- import java.awt.AWTException;
- import java.awt.Color;
- import java.awt.Robot;
- public class SRobot extends Robot {
- @Override
- public synchronized SColor getPixelColor(int arg0, int arg1) {
- Color c = super.getPixelColor(arg0, arg1);
- SColor sc = new SColor(c.getRed(),c.getGreen(),c.getBlue());
- return sc;
- }
- public SRobot() throws AWTException {
- super();
- // TODO Auto-generated constructor stub
- }
- }