AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
How do you rotate a picture in word9/8/2023 ![]() ![]() ![]() Gfx.TranslateTransform(-(float)bmp.Width / 2, -(float)bmp.Height / 2) Gfx.TranslateTransform((float)bmp.Width / 2, (float)bmp.Height / 2) now we set the rotation point to the center of our image Public static Image RotateImage(Image img, float rotationAngle)īitmap bmp = new Bitmap(img.Width, img.Height) / negative values will rotate counter-clockwise / Positive values will rotate clockwise / method to rotate an image either clockwise or counter-clockwise Here's a method you can use to rotate an image in C#: ///
0 Comments
Read More
Leave a Reply. |