Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

Edited Issue: Reading a Bitmap from a Stream not respecting EXIF flag [19582]

$
0
0
In the FromStream method of WriteableBitmapConvertExtensions the BitmapDecoder is using ExifOrientationMode.RespectExifOrientation but the new WriteableBitmap is created with the original PixelWidth and PixelHeight. This leads to weird image effects when reading photos from an iOS or Android device.

Fix
Change:
bmp = new WriteableBitmap((int)decoder.PixelWidth, (int)decoder.PixelHeight);

to:
bmp = new WriteableBitmap((int)decoder.OrientedPixelWidth, (int)decoder.OrientedPixelHeight);

cheers
Perry
Comments: ** Comment from web user: teichgraf **

Fixed in revision 99832


Viewing all articles
Browse latest Browse all 360

Trending Articles



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