如何将System.Drawing.Image转换为System.Drawing.Icon [英] How to convert System.Drawing.Image to System.Drawing.Icon
本文介绍了如何将System.Drawing.Image转换为System.Drawing.Icon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我厌倦了尝试将列表视图中选定项目的图像转换为图标的方式
转换成对话形式.
解决方案
此链接 [ ^ ]可以帮助您.
进行操作那里-[C#2.0将位图转换为图标] [
I m tired of trying to convert an image of selected item in listview to use it as icon
into a dialog form.
How it''s possible ?
解决方案
This link[^] could help you out.
Have a go there-[C# 2.0 Convert Bitmap to Icon][^] for getting solution having same question.
selected answer is :-
Bitmap bmp = new Bitmap(sourceFileName); bmp.Save(@"C:\Test.ico",System.Drawing.Imaging.ImageFormat.Icon);
这篇关于如何将System.Drawing.Image转换为System.Drawing.Icon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文