Supplement AutoReload features
Some checks are pending
MSBuild / build (push) Waiting to run
MSBuild / publish (push) Blocked by required conditions

This commit is contained in:
ema
2025-06-10 11:40:20 +08:00
parent 1b3d2e518d
commit 4fd8c14b98
4 changed files with 22 additions and 16 deletions

View File

@@ -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();