Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Why Does Bitmap.FromFile() Rotate my image?

$
0
0

If this question gets moved to another venue, that's fine - please let me know where it ends up.

In C#, I have this instruction:

            Bitmap myBitmap = (Bitmap)Bitmap.FromFile(myOriginalImage);

My image on disk is in portrait, but once I run the instruction, its in landscape.

Is there a good reason for that? Or, can I stop that?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>