WPF program error in Windows XP: The image format is unrecognized.

Source: Internet
Author: User

A recently-made WPF program, in Windows 7 or later versions of the system, tests are normal, and when running under Windows XP, you reported an error at the beginning:

"ClassName": "System.Windows.Markup.XamlParseException",
"Message": "The image format is unrecognized.",
"Data": {
"System.Object": null
"InnerException": {
"ClassName": "System.Runtime.InteropServices.COMException",
"Message": "Exception from Hresult:0x88982f07",
"Data": null

The following omits several lines of exception information ...

Well... Baidu a bit, found that the original program icon format problem, as if since the Windows Vista, because the system can be magnified in the icon to a large (max is 256x256? ), the HD icon is certainly the increase in volume ha, in order to reduce the volume of the icon, as if the introduction of a compression parameter icon format, you can compress the size of the HD icon?

Well, involved saga, the solution is to find an icon design tool, modify a standard, the compression parameters to remove the good ~

For example, I use a software called IconWorkshop, the top right corner of the icon has such a small icon (), is compressed ...

Then right-click to remove the PNG compressed image format option, or remove the toolbar button on the selected state, just fine.

Different software settings may vary, but should have this option, find it yourself ~

Reference Source: http://torque.gig8.com/2009/01/image_format_is_unrecognized_w.html

WPF program error in Windows XP: The image format is unrecognized.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.