I am working on video processing with JavaScript, I am doing fine, but I am using a method called, canvasCtx.rect (), it receives these parameters.
And then I get to get the data from that rectangle that I drew with the getImageData () method, but it receives these parameters:
They look similar and are almost the same, but in the "X" and "Y" coordinates, .rect () receives the coordinates and .getImageData () receives the "X" and "Y" coordinates as well, but now in pixels, and I do not know if it is my perception but I am drawing the data on a graph and I feel that they are a bit outdated, I wanted to know if in fact they must be different values or it is really the same. Thank you.