Here is my question
I don't seem to understand what sx and sy are for the function below
context.drawImage (image, sx, sy, sw, sh, dx, dy, dw, dh);
what do I really mean if we change the values โโof sx and sy and set our values โโof dx and dy to fix, let's say dx = 0 and dy = 0, does something really change for our image on the canvas, when do we set sx = 300 and sy = 300 compared to sx = 0 and sy = 0? I mean, the destination image is still at the location dx = dy = 0, even we set sx and sy to different values, right? I know this is a stupid question, but I just need to know the answer, thanks!
source share