.exe的图标,16x16到256x256,仅显示16x16图标 [英] Icon for .exe, 16x16 to 256x256, only showing 16x16 icon
问题描述
我为我的应用制作了一个16x16,32x32,64x64和128x128的图标。这个图标是在visual studio中制作的,所有图标都在同一个文件中,...
现在我将我的图标添加到我的应用程序:
项目 - > xxx属性 - > TabPage:应用程序 - >
添加在Icon和manifest中。
为什么我只在桌面上看到.x的16x16图标,如果我改变桌面大小或在资源管理器中,没有任何反应。
我有建造,重建,...我的项目,但仍然没有运气。
这是什么意思:使用默认设置嵌入清单
和创建没有清单的应用程序
?
只有当你想告诉操作系统什么颜色代表你的应用程序是OS的手段时,才真正需要这个图标。因此,它具有透明度功能和一项功能,可帮助您在一个图标对象中打包几个不同的位图。据报道,Windows使用以下一组尺寸:
256 x 256像素 - 32位(24位色,8位透明度)
48 x 48像素 - 32位( 24位色,8位透明度)
32 x 32像素 - 32位(24位色,8位透明度)
16 x 16像素 - 32位(24位色,8位透明度)>
事情是:这是操作系统决定在每种情况下使用的尺寸。您应该只在图标对象中提供一组位图:应用程序图标放在应用程序可执行模块资源中,并由UI Shell中的OS Shell使用,如基于Shell的文件管理器,标准文件对话框等。此外,您应该使用一些图标作为窗口图标;然后操作系统将在桌面,轨迹栏等中显示这些图标。在所有情况下,壳牌决定展示什么以及如何展示。
我没有看到在应用程序内部使用图标的理由视窗。您应该使用任何其他类型的矢量或像素图形:直接在控件中渲染图形,使用位图...
-SA
I have made an icon 16x16, 32x32, 64x64 and 128x128 for my app. This icon was made in visual studio, all icons are in the same file,...
Now i added my icon to my app:
Project --> xxx Properties --> TabPage: Application -->
added in Icon and manifest.
Why i only see icon 16x16 for .exe on my desktop, if i change size of a desktop or in explorer, nothing happens.
I have build, rebuild,... my project and still no luck.
And what is the meaning of this: "Embed manifest with default settings"
and "Create application without a manifest"
?
The icon is only really needed when you want to tell OS what do paint to represent your application be the means of OS. Therefore, it has a transparency feature and a feature which helps you to pack several different bitmaps in one icon object. Reportedly, Windows uses the following set of sizes:
256 x 256 pixels - 32bit (24bit colour, 8bit transparency) 48 x 48 pixels - 32bit (24bit colour, 8bit transparency) 32 x 32 pixels - 32bit (24bit colour, 8bit transparency) 16 x 16 pixels - 32bit (24bit colour, 8bit transparency)
The thing is: this is the OS which "decide" what size is to be used in every situation. You should only provide a set of bitmaps in an icon object: the "application icon" is put to application executable module resource and will be used by the OS Shell in the UI like Shell-based file managers, standard file dialog boxes and the like. Also, you should use some icons as the window icons; then the OS will show these icons in desktops, track bars and the like. In all cases, the Shell "decides" what to show and how to show.
And I don''t see a reason to use icons "inside" the application windows. You should rather use any other kinds of vector or pixel graphics: render graphics directly in controls, use bitmaps…
—SA
这篇关于.exe的图标,16x16到256x256,仅显示16x16图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!