I make a photo gallery, but all my images are painted at the origin (0,0).
canvasContent.drawImage(arrPhoto[currentIndex], 0, 0);
How can I make sure that my images are drawn in the middle of the canvas?
Thanks for helping me!
UPDATE
I might ask my question a little wrong. I mean: I want the middle of my image to be in the middle of my canvas, and not in the upper corner of the image.
Sorry for this
Edit: typo
Edit2: typo
javascript html image canvas
Matt
source share