mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
Fix image viewer copy without transparency support
This commit is contained in:
@@ -19,6 +19,7 @@ using QuickLook.Common.Annotations;
|
||||
using QuickLook.Common.ExtensionMethods;
|
||||
using QuickLook.Common.Helpers;
|
||||
using QuickLook.Common.Plugin;
|
||||
using QuickLook.Plugin.ImageViewer.NativeMethods;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
@@ -293,13 +294,13 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
|
||||
{
|
||||
if (_source is not null)
|
||||
{
|
||||
Clipboard.SetImage(_source);
|
||||
ClipboardEx.SetClipboardImage(_source);
|
||||
return;
|
||||
}
|
||||
|
||||
if (viewPanelImage.Source is BitmapSource bitmapSource)
|
||||
{
|
||||
Clipboard.SetImage(bitmapSource);
|
||||
ClipboardEx.SetClipboardImage(bitmapSource);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user