优化程序 增加功能

This commit is contained in:
liufei
2021-05-14 16:48:26 +08:00
parent ef7cb465a1
commit de31210f37
16 changed files with 719 additions and 205 deletions

View File

@@ -19,23 +19,6 @@ namespace GeekDesk.Util
public static BitmapImage GetBitmapImage(string filePath)
{
//Icon ico;
//BitmapImage bmpImage = null;
//MemoryStream strm;
//using (ico = GetIcon(filePath))
//{
// Bitmap bmp = ico.ToBitmap();
// using (strm = new MemoryStream())
// {
// bmp.Save(strm, System.Drawing.Imaging.ImageFormat.Png);
// bmpImage = new BitmapImage();
// bmpImage.BeginInit();
// strm.Seek(0, SeekOrigin.Begin);
// bmpImage.StreamSource = strm;
// bmpImage.EndInit();
// }
//}
//return bmpImage;
Icon ico = GetIcon(filePath);
Bitmap bmp = ico.ToBitmap();
MemoryStream strm = new MemoryStream();