This commit is contained in:
Paddy Xu
2017-08-06 17:27:30 +03:00
parent 3a20245304
commit 5b97e7ef60
17 changed files with 243 additions and 23 deletions

View File

@@ -21,6 +21,7 @@ using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using LibAPNG;
using QuickLook.Helpers;
namespace QuickLook.Plugin.ImageViewer.AnimatedImage
{
@@ -99,7 +100,7 @@ namespace QuickLook.Plugin.ImageViewer.AnimatedImage
var bitmap = new RenderTargetBitmap(
header.Width, header.Height,
96, 96,
DpiHelper.DefaultDpi, DpiHelper.DefaultDpi,
PixelFormats.Pbgra32);
bitmap.Render(visual);
return bitmap;