图像是模糊的ImageList中在窗口应用的ListView [英] Images are blurred in ImageList with ListView in window Application

查看:176
本文介绍了图像是模糊的ImageList中在窗口应用的ListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我订的产品的一些图像,图像列表,我设置图像列表作为ListView控件进行图像显示的LargeImageList。
当时所有人都在模糊的ListView。我不究竟是什么发梗与此图像。

所有图像质量都不错。
即使我设置图像的ListView没有那么质量是一样的形象维护。

下面是我的形式形象布局,可以看到图像质量的下降。

点击这里看图片

 的foreach(在数据VAR项)
{
    {
        il.Images.Add(测试1,图像);
        ListViewItem的LVI =新的ListViewItem();
        lvOrderItem.Items.Add(LVI);
        lvOrderItem.Items [I] .Name点= item.ItemID.ToString();
        我++;
    }
}
lvOrderItem.MultiSelect = FALSE;
lvOrderItem.BorderStyle = BorderStyle.FixedSingle;
il.ImageSize =新的大小(125,150);
lvOrderItem.View = View.LargeIcon;
lvOrderItem.LargeImageList = IL;


解决方案

此问题是讨论的此处
我建议你​​与原始图像储存在一起的缩略图,并在你的图像列表中显示进去。您也可以在飞行中转换图像。

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;

解决方案

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.

这篇关于图像是模糊的ImageList中在窗口应用的ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆