Created
May 2, 2025 14:36
-
-
Save conholdate-gists/c73de9cf182447050391216273165574 to your computer and use it in GitHub Desktop.
Rotate Image in C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load an image in an instance of Image | |
using (Image image = Image.Load("image.bmp")) | |
{ | |
// Rotate the image | |
image.RotateFlip(RotateFlipType.Rotate270FlipNone); | |
// Save image | |
image.Save("image-rotated.bmp"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment