2017-10-23 18:48:46 +02:00
|
|
|
|
using System.IO;
|
|
|
|
|
using Splat;
|
|
|
|
|
|
|
|
|
|
namespace ModernKeePassLib.Utility
|
|
|
|
|
{
|
|
|
|
|
public class GfxUtil
|
|
|
|
|
{
|
2018-03-12 12:40:07 +01:00
|
|
|
|
public static IBitmap LoadImage(byte[] pb)
|
2017-10-23 18:48:46 +02:00
|
|
|
|
{
|
2018-03-12 12:40:07 +01:00
|
|
|
|
return null;
|
|
|
|
|
//return ScaleImage(pb, null, null);
|
2017-10-23 18:48:46 +02:00
|
|
|
|
}
|
|
|
|
|
|
2018-03-12 12:40:07 +01:00
|
|
|
|
public static IBitmap ScaleImage(byte[] pb, int? w, int? h)
|
2017-10-23 18:48:46 +02:00
|
|
|
|
{
|
2018-03-12 12:40:07 +01:00
|
|
|
|
return null;
|
|
|
|
|
/*using (var ms = new MemoryStream(pb, false))
|
2017-10-23 18:48:46 +02:00
|
|
|
|
{
|
2018-03-12 12:40:07 +01:00
|
|
|
|
return BitmapLoader.Current.Load(ms, w, h).Result;
|
|
|
|
|
}*/
|
2017-10-23 18:48:46 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|