sudha kolusu

sudha kolusu

  • NA
  • 3
  • 1.2k

How to prevent image resize after rotating the image

Apr 14 2020 9:04 AM
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)