什么是BluwolfIcons?
Bluwolf Icons is a C# .NET library for manipulating icon images (.ico)
made using the WIC (Windows Imaging Component), the same technology
behind WPF.
Why not just use .NET’s built-in Icon support?
为什么用这个玩意?
All the built-in .NET libraries for icon manipulation only support a
single icon: It automatically loads only the best quality image inside
the .ico and you can only save one single bitmap as an icon. Not only
that, but they are also built on top of GDI+, which is known to be
messy and incomplete. Bluwolf Icons lets you load and save icons with
as many images as you want and is built on top of the newer WIC, the
same used in WPF.
自我理解
这个东西和WPF自带的Icon,区别最明显的是:WPF自带的Icon只能存放一个icon。而它可以存放多个。同时加载任一个大小的icon,你就有了多个大小的icon。同时一个icon里面存了多个图,可以随意切换也是比较方便。为此学习记录一下
小试一下
下面是一个例子:
我用它干了一件事:把32乘32的icon转为256乘256的
结果:
非常nice!
开源地址:https://github.com/Davipb/BluwolfIcons