Windows 7 任务栏中的 VB6 应用程序图标模糊 [英] VB6 app icon in Windows 7 taskbar is blurred

查看:38
本文介绍了Windows 7 任务栏中的 VB6 应用程序图标模糊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 VB6 应用程序,其中一个 Form 图标被设置为应用程序图标.问题是在 Windows 7 中,即使图标包含 16x16、32x32 和 48x48 尺寸,图标看起来也很模糊.

I have a VB6 application and one of the Form icon is set as application icon. The problem is that in Windows 7 the icon looks blurred even though the icon contains 16x16, 32x32 and 48x48 sizes.

有没有办法解决这个问题?它尝试了 SendMessage(... SETICON... ICON_BIG) 但它似乎不起作用.

Is there a way around this problem? It tried the SendMessage(... SETICON... ICON_BIG) but it does not seems to work.

推荐答案

您的 ico 文件中图标的颜色深度是多少?

What colour depth are the icons in your ico file?

VB6(我相信)支持图标的最大 8 位颜色深度(256 色):-

VB6 (I believe) supports a maximum 8 bit colour depth (256 colours) for icons:-

因此,如果 8 位颜色深度中没有大小为 48 x 48 的图标,则可以使用最接近的匹配并将其缩放为 48 x 48

So if there is no size 48 x 48 icon in 8 bit colour depth it could be using the nearest match and scaling it to 48 x 48

我只是尝试使用一个没有 8 位深度的 48 x 48 图标(但在更高深度有 48 x 48)的图标,并且任务栏中使用的图标是 8 位颜色深度的 32 位图标.

I just tried this using an icon that did not have a 48 x 48 icon at 8 bit depth (but did have 48 x 48 at higher depths) and the icon used in the taskbar was the 32bit icon at 8 bit colour depth.

这篇关于Windows 7 任务栏中的 VB6 应用程序图标模糊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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