Image img = Image.FromHbitmap(icon.ToBitmap().GetHbitmap());
Graphics g = Graphics.FromImage(img);
g.DrawImage(img, 0, 0, img.Width, img.Height);
Font f = new Font("Verdana", 32);
Brush b = new SolidBrush(Color.Red);
g.DrawString("!!!", f, b,0, 0);
Icon icon = Icon.FromHandle(((Bitmap)img).GetHicon());
g.Dispose();
C#Image和Icon的相互转化
最新推荐文章于 2023-10-27 22:57:00 发布