将Window.Icon设置为Vista 256x256 PNG图标会导致FileFormatException [英] Setting Window.Icon to Vista 256x256 PNG icon causes a FileFormatException

查看:67
本文介绍了将Window.Icon设置为Vista 256x256 PNG图标会导致FileFormatException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果将Icon属性设置为Vista图标,则会收到FileFormatException声明无法识别图像格式.如果我使用旧的Windows XP图标(没有PNG压缩图像)尝试相同的操作,则它可以正常工作.我简直不敢相信WPF不支持Vista图标.

If I set the Icon property to a Vista icon, I get a FileFormatException stating that the image format is unrecognized. If I try the same thing with an old Windows XP icon (without PNG compressed images) it works correctly. I simply cannot believe that WPF doesn't support Vista icons.

Asbjørn

推荐答案

Vista可以使用纯png图像作为图标吗?

Can vista use pure png-images as icons?!

最后!

我一直想知道为什么Windows一直卡在那些几乎找不到合适转换器的converter脚ico文件中.

I've always wondered why windows has been stuck to those lame ico-files to which it's almost impossible to find a good converter for.


这篇关于将Window.Icon设置为Vista 256x256 PNG图标会导致FileFormatException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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