Use WIC to decode the Windows Vista icon

Source: Internet
Author: User

Recently I wrote a control and found that the VC API function: LoadImage contains 128x128,256x256 icons, and some of them cannot be loaded in this format.

The reason is that the format is PNG compressed image format.

 

-- WIC history

Microsoft Windows Imaging component (WIC) is an extensible framework used to encode, decode, and manipulate images. WIC was originally created for Windows Vista And Windows Presentation Foundation (WPF)
But now, not only Windows Vista and Microsoft. NET Framework 3.0 and later, but also Windows XP and Windows Server A download item of 2003 for local applications Program.

 

 

To read the ICO in this format, there are twoArticleIt is worth reading:

Part 1: http://msdn.microsoft.com/zh-cn/magazine/cc500647.aspx

Part 2 http://msdn.microsoft.com/zh-cn/magazine/cc546571.aspx

 

 

Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.