I have a html5 canvas. I want to draw/rotate the image in the canvas and image size does not change.I set width/height of canvas base on size of image.I have a problem to r
change the parameter of drawImage
ctx.drawImage(image, -image.width / 2, -image.height/ 2);