fix Exif rotation in ImageViewer; WIP on archive viewer

This commit is contained in:
Paddy Xu
2017-04-28 00:08:26 +03:00
parent 7dcb0e615b
commit a5442faa12
17 changed files with 495 additions and 273 deletions

View File

@@ -14,6 +14,10 @@ namespace QuickLook.Plugin.LastResort
public static BitmapSource ToBitmapSource(this Bitmap source)
{
// BitmapSource.Create throws an exception when the image is scanned backward.
// The Clone() will make it back scanning forward.
source = (Bitmap) source.Clone();
var ip = source.GetHbitmap();
BitmapSource bs = null;
try