I have an image, the dimensions are 1440 (width), 2560(height), so it is portrait.
However, System.Drawing.Image method return the width as 2560 and height as 1440.
I have tried different ways for correct width and height, but none of them work, can anyone help?
FileStream fs = new FileStream(OriginalFileLocation, FileMode.Open);
System.Drawing.Image sourcefile = System.Drawing.Image.FromStream(fs);
---------other way-------------
System.Drawing.Image source = System.Drawing.Image.FromFile(OriginalFileLocation);
------- other way-------------
Bitmap upimage1 = new Bitmap(OriginalFileLocation);