I'm making a photogallery, but all my images are painted in the origin (0,0).
canvasContent.drawImage(arrPhoto[currentIndex], 0, 0);
How can I make sure that my images are drawn in the middle on the canvas object?
Thanks for helping me out!
UPDATE
I might have formed my question a bit wrong. What I mean is: I want the middle of my image to be in the middle of my canvas, not the top corner of the image.
Sorry for that
Edit: typo
Edit2: typo