Robot robot = new Robot(); //获取指定坐标点的颜色RGB值 Color color = robot.getPixelColor(800, 150); System.out.println(“Red = ” + color.getRed()); System.out.println(“Green = ” + color.getGreen()); System.out.println(“Blue = ” + color.getBlue());
Robot robot = new Robot(); //获取指定坐标点的颜色RGB值 Color color = robot.getPixelColor(800, 150); System.out.println(“Red = ” + color.getRed()); System.out.println(“Green = ” + color.getGreen()); System.out.println(“Blue = ” + color.getBlue());