列表视图图标显示模糊(C#) [英] Listview icons show up blurry (C#)

查看:544
本文介绍了列表视图图标显示模糊(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在ListView控件中显示LargeIcon的看法,但我指定的图像模糊。这是我到目前为止有:

I'm attempting to display a "LargeIcon" view in a listview control, however the images I specify are blurry. This is what I have so far:

其中.png文件的48x48的,这就是我把它设置在ImageList属性显示。有一件事,我已经注意到(这可能是原因),但我不知道如何去改变它。里面的图片集合编辑器,你选择你想要的图像,ImageList控件,它看起来像它的设置为每个图像尺寸不合适。

The .png files are 48x48 and that's what I have it set to display at in the ImageList properties. There's one thing that I've noticed (which is probably the cause) but I don't know how to change it. Inside the "Images Collection Editor" where you choose what images you want for the ImageList control, it looks like it's setting the wrong size for each image.

正如你可以看到PhysicalDimension和大小设置为16x16和不体健被操纵。没有任何人有什么想法?非常感谢!

As you can see the "PhysicalDimension" and the "Size" is set to 16x16 and not abled to be manipulated. Does anyone have any ideas? Many thanks!

推荐答案

在添加.PNG图标格式大小编辑趋于回暖该文件中的第一个条目的大小,因此它捡起的16x16条目,它的伸展说出来。这就是为什么你看到的16×16的属性那里。至于建议,对PNG支持不好,我经常发现自己翻身为另一种格式,以及避免这种情况。

When adding a .PNG Icon format size the editor tends to pick the first entry size in that file, so it picks up the 16x16 entry and it's stretching that out. That's why you see the 16x16 in the properties there. As suggested, the support for PNG is poor, I'm often found myself rolling over to another format as well to avoid this.

您可以打开 Paint.Net 文件,如果你需要一个免费编辑或更多的东西全功能如Photoshop或Fireworks和提取你想要的确切大小。

You can open the file in Paint.Net if you need a free editor or something more fully featured like Photoshop or Fireworks and extract the exact size you want.

这篇关于列表视图图标显示模糊(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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