iconList=new Icon[imageList.Images.Count];
// System.Drawing.ImageConverter(
for(int i=0;i<iconList.Length;i++)
{
Stream s=new MemoryStream(4096);
// imageList.Images[i].Save( s , ImageFormat.Icon);
错误,流格式现在是ImageFormat.Bmp
imageList.Images[i].Save(s,ImageFormat.Bmp);
Bitmap b=new Bitmap(s)
//但是我要的是Icon格式的流呀,如果得到,如果用IconCoverter怎么用呢??;
// System.Drawing.ImageConverter(
for(int i=0;i<iconList.Length;i++)
{
Stream s=new MemoryStream(4096);
// imageList.Images[i].Save( s , ImageFormat.Icon);
错误,流格式现在是ImageFormat.Bmp
imageList.Images[i].Save(s,ImageFormat.Bmp);
Bitmap b=new Bitmap(s)
//但是我要的是Icon格式的流呀,如果得到,如果用IconCoverter怎么用呢??;
Stream s=new MemoryStream(4096);
// Image.Save( s , ImageFormat.Icon);
错误,流格式现在是ImageFormat.Bmp
Image.Save(s,ImageFormat.Bmp);
Bitmap b=new Bitmap(s)
Icon icon=Icon.FromHandle(b.GetHicon());