mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-18 06:22:58 +00:00
rename
This commit is contained in:
@@ -43,8 +43,8 @@ namespace QuickLook.Plugin.ImageViewer.AnimatedImage.Providers
|
||||
|
||||
_fileHandle = (Bitmap) Image.FromFile(path.LocalPath);
|
||||
|
||||
_fileHandle.SetResolution(DpiHelper.DefaultDpi * DpiHelper.GetCurrentScaleFactor().Horizontal,
|
||||
DpiHelper.DefaultDpi * DpiHelper.GetCurrentScaleFactor().Vertical);
|
||||
_fileHandle.SetResolution(DisplayDeviceHelper.DefaultDpi * DisplayDeviceHelper.GetCurrentScaleFactor().Horizontal,
|
||||
DisplayDeviceHelper.DefaultDpi * DisplayDeviceHelper.GetCurrentScaleFactor().Vertical);
|
||||
|
||||
Animator = new Int32AnimationUsingKeyFrames {RepeatBehavior = RepeatBehavior.Forever};
|
||||
Animator.KeyFrames.Add(new DiscreteInt32KeyFrame(0, KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(0))));
|
||||
|
@@ -104,8 +104,8 @@ namespace QuickLook.Plugin.ImageViewer.AnimatedImage.Providers
|
||||
if (mi.Width != (int) fullSize.Width || mi.Height != (int) fullSize.Height)
|
||||
mi.Resize((int) fullSize.Width, (int) fullSize.Height);
|
||||
|
||||
mi.Density = new Density(DpiHelper.DefaultDpi * DpiHelper.GetCurrentScaleFactor().Horizontal,
|
||||
DpiHelper.DefaultDpi * DpiHelper.GetCurrentScaleFactor().Vertical);
|
||||
mi.Density = new Density(DisplayDeviceHelper.DefaultDpi * DisplayDeviceHelper.GetCurrentScaleFactor().Horizontal,
|
||||
DisplayDeviceHelper.DefaultDpi * DisplayDeviceHelper.GetCurrentScaleFactor().Vertical);
|
||||
|
||||
var img = mi.ToBitmapSourceWithDensity();
|
||||
|
||||
|
@@ -30,8 +30,8 @@ namespace QuickLook.Plugin.ImageViewer
|
||||
{
|
||||
// a dirty hack... but is the fastest
|
||||
|
||||
var newDpiX = (double) DpiHelper.DefaultDpi * DpiHelper.GetCurrentScaleFactor().Horizontal;
|
||||
var newDpiY = (double) DpiHelper.DefaultDpi * DpiHelper.GetCurrentScaleFactor().Vertical;
|
||||
var newDpiX = (double) DisplayDeviceHelper.DefaultDpi * DisplayDeviceHelper.GetCurrentScaleFactor().Horizontal;
|
||||
var newDpiY = (double) DisplayDeviceHelper.DefaultDpi * DisplayDeviceHelper.GetCurrentScaleFactor().Vertical;
|
||||
|
||||
var dpiX = img.GetType().GetField("_dpiX",
|
||||
BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
|
Reference in New Issue
Block a user