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