On Mon, 19 Aug 2024 09:29:12 GMT, Tejesh R <[email protected]> wrote:

> > @TejeshR13 , no, it just compares the Button renderings only, nothing else. 
> > `bimage = robot.createScreenCapture(new Rectangle(buttonLoc.x, buttonLoc.y, 
> > button.getWidth(), button.getHeight()));`
> 
> Which is exactly in the image right?

Yes, your images contain the Windows taskbar also, but I'm not sure why it is 
taking that also when we capture the screen based on button's dimensions, could 
it be because of button.getWidth() and button.getHeight() returning wrong 
values?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20532#issuecomment-2296145654

Reply via email to