首先从ListImages中把图像装换成MemoryStream流
Bitmap bmp=new Bitmap(mStream);
bmp.maketransparent(); //设置图像透明填充
Icon icon=Icon.FromHandle(bmp.GetHicon());
mStream.Close();
首先从ListImages中把图像装换成MemoryStream流
Bitmap bmp=new Bitmap(mStream);
bmp.maketransparent(); //设置图像透明填充
Icon icon=Icon.FromHandle(bmp.GetHicon());
mStream.Close();