Images are blurred in ImageList with ListView in w

2020-07-27 05:54发布

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条回答
乱世女痞
2楼-- · 2020-07-27 06:36

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.

查看更多
登录 后发表回答