2
Answers

How to prevent image resize after rotating the image

sudha kolusu

sudha kolusu

4y
1.2k
1
Hi Team,
In our windows application, we are rotating the images based on its EXIF data.
After rotating we are saving the image, but the image size is increasing. The image should be saved as it is without increasing the size.
Below is the code.
Dim rotateFlipType As RotateFlipType = OrientationToFlipType(orientationValue)
bitmap.RotateFlip(rotateFlipType)
after rotating the image using the above code, we are saving the image. but the image size is increasing.
tempImage.Save(diresctoryPath & imageName, System.Drawing.Imaging.ImageFormat.Png).
 please help us.
 
 
Answers (2)