在WinForm中,使用ListView控件暂时图片列表,ImageList加载的图片效果显示失真。
解决方法:
//解决颜色失真的问题 其中:myImageList = new ImageList();
myImageList.ColorDepth = ColorDepth.Depth32Bit;
原因:默认颜色深度为8位,8位容易产生失真,用32位的就能解决。
//解决颜色失真的问题 其中:myImageList = new ImageList();
myImageList.ColorDepth = ColorDepth.Depth32Bit;