代理版本调试
This commit is contained in:
1 parent
dcdfa30419
commit
1669305479
34 files changed
+4872
-184
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user