Deactivation of buggy Splat custom icon implementation

This commit is contained in:
BONNEVILLE Geoffroy
2018-03-12 12:40:07 +01:00
parent fb0eab00c2
commit 7613629d87
3 changed files with 14 additions and 16 deletions

View File

@@ -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;
}*/
}
}
}