mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Deactivation of buggy Splat custom icon implementation
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Splat;
|
||||
|
||||
namespace ModernKeePassLib.Utility
|
||||
{
|
||||
public class GfxUtil
|
||||
{
|
||||
public static async Task<IBitmap> LoadImage(byte[] pb)
|
||||
public static IBitmap LoadImage(byte[] pb)
|
||||
{
|
||||
return await ScaleImage(pb, null, null);
|
||||
return null;
|
||||
//return ScaleImage(pb, null, null);
|
||||
}
|
||||
|
||||
public static async Task<IBitmap> ScaleImage(byte[] pb, int? w, int? h)
|
||||
public static IBitmap ScaleImage(byte[] pb, int? w, int? h)
|
||||
{
|
||||
using (var ms = new MemoryStream(pb, false))
|
||||
return null;
|
||||
/*using (var ms = new MemoryStream(pb, false))
|
||||
{
|
||||
return await BitmapLoader.Current.Load(ms, w, h);
|
||||
}
|
||||
return BitmapLoader.Current.Load(ms, w, h).Result;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user