Images are blurred in ImageList with ListView in window Application

给你一囗甜甜゛ 提交于 2019-12-22 01:05:19

问题


When I Set Some images of products in Imagelist and I set that Imagelist as LargeImageList of ListView for display of images. At that time all are blur in ListView. I don't what is exactly happed with this images.

All images quality are good. Even I set image without ListView then Quality is maintain with same image.

Here is the Image layout of my form and you can see images quality are degraded.

Click here for see image

foreach (var item in Data)
{
    {
        il.Images.Add("test1", image);
        ListViewItem lvi = new ListViewItem();
        lvOrderItem.Items.Add(lvi);
        lvOrderItem.Items[i].Name = item.ItemID.ToString();
        i++;
    }
}
lvOrderItem.MultiSelect = false;
lvOrderItem.BorderStyle = BorderStyle.FixedSingle;
il.ImageSize = new Size(125, 150);
lvOrderItem.View = View.LargeIcon;
lvOrderItem.LargeImageList = il;

回答1:


This problem is discussed here. I'd recommend to store thumbnails together with original images and show it in in you image list. Also you can convert images on the fly.



来源:https://stackoverflow.com/questions/23950918/images-are-blurred-in-imagelist-with-listview-in-window-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!