mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
let WPF do the decoding
This commit is contained in:
@@ -33,7 +33,7 @@ namespace QuickLook.Plugin.ImageViewer.AnimatedImage
|
||||
if (decoder.IsSimplePNG)
|
||||
{
|
||||
animator.KeyFrames.Add(
|
||||
new DiscreteObjectKeyFrame(decoder.DefaultImage.GetBitmapSource(), TimeSpan.Zero));
|
||||
new DiscreteObjectKeyFrame(BitmapFrame.Create(new Uri(path)), TimeSpan.Zero));
|
||||
animator.Duration = Duration.Forever;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user