代理版本调试

This commit is contained in:
wule_5900x committed 2026-07-05 22:55:04 +08:00
1 parent dcdfa30419
commit 1669305479
34 files changed
+4872 -184

No files matched your search

+9
View File
@@ -4,6 +4,7 @@ using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows.Media.Imaging;
namespace AllBase
{
@@ -325,5 +326,13 @@ namespace AllBase
DeleteObject(h);
return icon;
}
public static Icon ConvertToIcon(Bitmap bmp)
{
IntPtr h = bmp.GetHicon();
Icon icon = Icon.FromHandle(h);
DeleteObject(h);
return icon;
}
}
}