As seen in the first screenshot, the found pixel coordinate according to java.awt.Robot is the one in the array. However, when I try to intercept the mouse event, the same mouse event has the coordinates provided in CURR.
The way I obtain the image in which I find the pixel is:
BufferedImage screenImage = robot.createScreenCapture(screenRect);```
Afterward, I check the dimensions of the screenImage using this code.
```int width = screenImage.getWidth();
int height = screenImage.getHeight();```
I noticed though that the width and height of the image are 0.8 * the corresponding measurements of my screen. What I think is happening is that the Robot coordinates are 0.8 of the screen size and then the actual mouse event dispatched has that scaled to the actual screen. Can anyone give me an explanation of why this discrepancy arises?