Rotating a sprite

How do I set the center value of a sprite.

I am trying to rotate a sprite, I know about angle. I tryed angle += 1 and obviously the object spins but how do I set the center value?
Change the ox and oy values (offset) to half the width and half the height.
Thank you Shaz.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/rotating-a-sprite.18724/