设置应用程序图标,窗口图标到Windows 7图标友好 [英] Set application icon and window icon to Windows 7 friendly icon

查看:167
本文介绍了设置应用程序图标,窗口图标到Windows 7图标友好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用.NET在Visual Studio 2010 WPF项目4.0

I've created a WPF project in Visual Studio 2010 using .net 4.0

我已经创建了许多不同的大小和格式的图标直接从16×16 4位BMP高达256x256的24位BMP。我将其设置为在属性页的应用程序的图标,并在一个WPF窗口中的图标欢迎使用属性窗口的图标。

I've created an icon with many different sizes and formats right from 16x16 4 bit BMP up to 256x256 24 bit BMP. I set it as the program's icon in the property pages for the application, and as the window's icon in the icon propety on a WPF Window.

这工作到一个点。该图标会显示在所有预期的位置,但是,它似乎总是使用的次较低分辨率的图像之一。在任务栏就apperas要使用16×16的图像。在文件夹,如果你查看它的exe文件设置为显示为一个带有大量的白色空间角落找寻它,而不是选择大图标的小图像超大图标。即使我有一个256x256的图标作为唯一的图标设置它,它似乎它的规模下来,然后把它放在有很多的空白围绕它的中间。

This works to a point. The icon is displayed in all the expected location, however, it seems invariably to use one of th lower resolution images. In the task bar it apperas to be using a 16x16 image. In the folder if you view the exe file with it set to extra large icons it appears as a tiny image with lots of white space arround it, rather than choosing the large icon. Even if I set it up with a 256x256 icon as the only icon, it seems to scale it down, and then put it in the middle with lots of white space around it.

推荐答案

请参见这里的一些想法。此外,一定要清理图标缓存(thumbs.db的?),看看在浏览器中的更新图标

See here for some ideas. Also be sure to clean the icon cache (thumbs.db?) to see the updated icon in explorer.

编辑: IcoFx 也是在我的测试中表现相当不错。

IcoFx also behaved quite nicely in my tests.

这篇关于设置应用程序图标,窗口图标到Windows 7图标友好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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