BluwolfIcons的介绍

本文介绍BluwolfIcons,一个C#库,用于灵活操作.ico文件,支持多图象存储与WIC技术。对比.NET内置图标处理,它能加载多个不同大小的图标,并基于WPF底层技术。通过实例展示了将32x32图标转换为256x256的高效应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

什么是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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值