Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72358

Difference between “Coordinates in pixels” and “Coordinates” in Canvas HTML

$
0
0

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. Parámetros

And then I get to get the data from that rectangle that I drew with the getImageData () method, but it receives these parameters:

Parámetros

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.


Viewing all articles
Browse latest Browse all 72358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>