Skip to content
Advertisement

screenshot tool not working to take screenshot of left side

I have a tool to capture screenshots but this tool only captures screenshots when you hold button-1 and move to the right side, when you hold button-1 and move it to the left side or up, it does not capture the screenshot, what is the reason and how can I fix it? I thought about it, but I think it’s a mathematical problem, I’m waiting for your help.

JavaScript

Advertisement

Answer

You need to keep x1 <= x2 and y1 <= y2 when cropping image and creating the roi rectangle:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement