mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +00:00
[WIP] apng provider
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Threading;
|
||||
@@ -25,23 +26,19 @@ namespace QuickLook.Plugin.ImageViewer.AnimatedImage
|
||||
{
|
||||
internal abstract class AnimationProvider : IDisposable
|
||||
{
|
||||
protected AnimationProvider(string path, NConvert meta, Dispatcher uiDispatcher)
|
||||
protected AnimationProvider(string path)
|
||||
{
|
||||
Path = path;
|
||||
Meta = meta;
|
||||
Dispatcher = uiDispatcher;
|
||||
}
|
||||
|
||||
public Dispatcher Dispatcher { get; }
|
||||
|
||||
public string Path { get; }
|
||||
|
||||
public NConvert Meta { get; }
|
||||
|
||||
public Int32AnimationUsingKeyFrames Animator { get; protected set; }
|
||||
|
||||
public abstract void Dispose();
|
||||
|
||||
public abstract Task<BitmapSource> GetThumbnail(Size size, Size fullSize);
|
||||
|
||||
public abstract Task<BitmapSource> GetRenderedFrame(int index);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user