Java implementation screen color

xiaoxiao2021-03-06  114

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 ();

转载请注明原文地址:https://www.9cbs.com/read-102915.html

New Post(0)