I have a rotation problem. I know that I can rotate a Texture2D object using the draw method.
My goal is to rotate the texture 180 °. For example, if I take a picture of a person with a camera where the head is below, I want it to rotate so that the head is upstairs again.
Here is the code or rotation:
spriteBatch.Draw(Texture, Position, null, Color.White, MathHelper.Pi, new Vector2(), 1.0f, SpriteEffects.None, 0f);
Rotation works fine, but I have one more problem:

If I add a texture to position 0,0 after it rotates, it will no longer be visible.
How to rotate or flip an object so that the red dot is again in the upper left corner?
source
share