mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-02 02:44:41 +00:00
Supplement AutoReload features
This commit is contained in:
@@ -58,6 +58,7 @@ internal class NativeProvider : AnimationProvider
|
||||
img.BeginInit();
|
||||
img.UriSource = Path;
|
||||
img.CacheOption = BitmapCacheOption.OnLoad;
|
||||
img.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
|
||||
// specific renderSize to avoid .net's double to int conversion
|
||||
img.DecodePixelWidth = rotate ? decodeHeight : decodeWidth;
|
||||
img.DecodePixelHeight = rotate ? decodeWidth : decodeHeight;
|
||||
@@ -97,6 +98,7 @@ internal class NativeProvider : AnimationProvider
|
||||
img.BeginInit();
|
||||
img.UriSource = Path;
|
||||
img.CacheOption = BitmapCacheOption.OnLoad;
|
||||
img.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
|
||||
img.DecodePixelWidth = (int)(rotate ? fullSize.Height : fullSize.Width);
|
||||
img.DecodePixelHeight = (int)(rotate ? fullSize.Width : fullSize.Height);
|
||||
img.EndInit();
|
||||
|
Reference in New Issue
Block a user