mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-03 15:40:20 -04:00
Removed dependencies to UWP SDK
Added ImageSharp for image processing
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
||||
using SixLabors.ImageSharp;
|
||||
using SixLabors.ImageSharp.PixelFormats;
|
||||
using SixLabors.ImageSharp.Processing;
|
||||
|
||||
namespace ModernKeePassLib.Utility
|
||||
{
|
||||
public class GfxUtil
|
||||
{
|
||||
public static Image LoadImage(byte[] pb)
|
||||
public static Image<Rgba32> LoadImage(byte[] pb)
|
||||
{
|
||||
return null;
|
||||
return Image.Load<Rgba32>(pb);
|
||||
}
|
||||
|
||||
public static Image ScaleImage(Image m_imgOrg, int? w, int? h, ScaleTransformFlags flags)
|
||||
public static Image<Rgba32> ScaleImage(Image<Rgba32> m_imgOrg, int? w, int? h, ScaleTransformFlags flags)
|
||||
{
|
||||
return null;
|
||||
m_imgOrg.Mutate(i => i.Resize(w.GetValueOrDefault(), h.GetValueOrDefault()));
|
||||
return m_imgOrg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user