docs: 同步需求、架构、模块清单、竞品分析与多语言 README
大石头 authored at 2026-11-28 21:46:17 大石头 committed at 2026-11-28 21:48:03
19.37 KiB
NewLife.Imaging
# NewLife.Imaging - 纯托管图像基础库 ![GitHub top language](https://img.shields.io/github/languages/top/newlifex/NewLife.Imaging?logo=github) ![GitHub License](https://img.shields.io/github/license/NewLifeX/NewLife.Imaging?logo=github) ![NuGet Downloads](https://img.shields.io/nuget/dt/NewLife.Imaging?logo=nuget) ![NuGet](https://img.shields.io/nuget/v/NewLife.Imaging?logo=nuget) ![NuGet prerelease](https://img.shields.io/nuget/vpre/NewLife.Imaging?label=dev%20nuget&logo=nuget) [![test](https://github.com/NewLifeX/NewLife.Imaging/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/NewLifeX/NewLife.Imaging/actions/workflows/test.yml) ![locales](https://img.shields.io/badge/locales-11-2ea44f?logo=dotnet) ![platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS%20%7C%20Android%20%7C%20iOS-blue) ![arch](https://img.shields.io/badge/arch-AnyCPU-orange) [![contributors](https://img.shields.io/github/contributors/NewLifeX/NewLife.Imaging?logo=github)](https://github.com/NewLifeX/NewLife.Imaging/graphs/contributors) <!-- lang:start --> 🌐 [English](/NewLife/NewLife.Imaging/Blob/master/README.md) | [繁體中文](/NewLife/NewLife.Imaging/Blob/master/README.zh-TW.md) | [Español](/NewLife/NewLife.Imaging/Blob/master/README.es.md) | [Deutsch](/NewLife/NewLife.Imaging/Blob/master/README.de.md) | [日本語](/NewLife/NewLife.Imaging/Blob/master/README.ja.md) | [Français](/NewLife/NewLife.Imaging/Blob/master/README.fr.md) | [Português](/NewLife/NewLife.Imaging/Blob/master/README.pt.md) | [Русский](/NewLife/NewLife.Imaging/Blob/master/README.ru.md) | [한국어](/NewLife/NewLife.Imaging/Blob/master/README.ko.md) | [العربية](/NewLife/NewLife.Imaging/Blob/master/README.ar.md) <!-- lang:end --> > **[English](/NewLife/NewLife.Imaging/Blob/master/README.md)** | 简体中文 纯托管 .NET 图像基础库:JPEG、PNG、GIF、BMP、ICO、QOI、PNM 编解码,像素处理、绘制原语与元数据,默认零原生依赖。 源码:https://github.com/NewLifeX/NewLife.Imaging NuGet:`NewLife.Imaging` ## 快速开始 ```bash dotnet add package NewLife.Imaging ``` ```csharp using NewLife.Imaging; var frame = ImageFrame.Create(640, 480, PixelFormat.Rgb24); var row = frame.GetRowSpan(0); row[0] = 255; Console.WriteLine(ImageInfo.From(frame)); // 解码 JPEG、PNG、GIF、BMP、ICO、QOI 或 PNM 文件 var photo = NewLife.Imaging.Codecs.ImageCodecs.Decode(File.ReadAllBytes("photo.jpg")); // 生成登录页验证码 var captcha = NewLife.Imaging.Drawing.CaptchaGenerator.Generate(); File.WriteAllBytes("captcha.png", captcha.ToPng()); ``` 目标框架:`net45`、`netstandard2.0`、`netstandard2.1`、`net8.0`、`net10.0`。 ## 主要功能 已落地像素模型、编解码契约、像素处理、绘制原语与纯托管编解码器。JPEG、PNG、GIF、BMP、ICO、QOI、PNM 与 TIFF(baseline、Deflate/LZW/PackBits、8/16/32 位浮点、CMYK)在主包内完成编码与解码;WebP 提供 VP8L 无损编解码、VP8 有损关键帧与 Alpha 解码、以及 VP8/VP8L 动画,JPEG 支持 CMYK 编解码。GIF、ICO、TIFF、WebP 与 APNG 支持多帧读写;元数据覆盖 EXIF/XMP/IPTC/ICC 原始块,EXIF/IPTC/XMP 常用标签模型,以及方向、DPI、PNG 文本块与 JPEG 注释。 <details> <summary><b>图像编解码</b></summary> | 能力 | 带来的价值 | | --- | --- | | 图像帧模型 | 一条扁平缓冲区、一种像素格式、一套行跨度约定,所有 NewLife 库共用 | | 像素格式 | 8 位 Gray/RGB/BGR/RGBA/BGRA、16 位 Gray/RGB/RGBA、浮点 Gray/RGB/RGBA 与 CMYK32 | | 编解码契约 | `IImageDecoder` / `IImageEncoder` 与 `ImageCodecCapabilities`,线程安全的 `ImageCodecs` 注册表 | | JPEG、PNG、GIF、BMP、ICO、QOI、PNM、TIFF | 纯托管编码与解码;GIF/ICO/TIFF 支持多帧 | | WebP | 纯托管 VP8L 无损编码、完整 VP8L 解码、VP8 有损关键帧与 Alpha 解码、VP8/VP8L 动画 | | 格式识别 | 通过 `FindByData` 对全部可解码格式做魔数识别 | </details> <details> <summary><b>图像处理</b></summary> 已实现:像素格式转换、最近邻与双线性缩放、裁剪、直角旋转、翻转、灰度化、Otsu 二值化与亮度/对比度调整;其余为规划中。 | 能力 | 带来的价值 | | --- | --- | | 像素格式转换 | 在 RGB、BGR、RGBA、BGRA 与灰度之间转换,不离开统一模型 | | 缩放与裁剪 | 最近邻、双线性、双三次与面积平均;矩形裁剪与画布扩展 | | 旋转与翻转 | 直角旋转走无损快速路径,另支持任意角旋转 | | 色彩调整 | 按通道设置亮度、对比度、饱和度与伽马 | | 灰度与阈值 | 加权灰度、固定阈值与 Otsu 二值化 | | 卷积 | 均值/高斯模糊、锐化与 Sobel 边缘检测 | | Alpha 合成 | 预乘、反预乘与常用 Porter-Duff 模式 | | 直方图与量化 | 自动色阶、均衡化、调色板量化与抖动 | </details> <details> <summary><b>绘制原语</b></summary> 已实现:画布清空与填充、Bresenham 直线、矩形、8x8 位图文字、图像位块传送与验证码生成;其余为规划中。 | 能力 | 带来的价值 | | --- | --- | | 基础图形 | 直接画在图像帧上的直线、矩形、圆、椭圆与多边形 | | 抗锯齿 | 按覆盖率混合线条与多边形边缘 | | 位图字体 | 内置 8x16 ASCII 字体,支持缩放与前景/背景色 | | 图像合成 | 位块传送、缩放绘制、Alpha 混合与不透明覆盖 | | 验证码 | 随机字符叠加干扰线与噪点,可直接用于后台登录页 | | 裁剪与蒙版 | 矩形裁剪区与单通道蒙版 | | 渐变 | 支持多色标的线性与径向渐变 | </details> <details> <summary><b>元数据</b></summary> | 能力 | 带来的价值 | | --- | --- | | EXIF | 读写常用相机、时间、曝光与 GPS 标签,其余标签按原始块写入 | | ICC 配置文件 | 读取配置描述,编码时可嵌入原始配置数据 | | DPI 与物理尺寸 | 带单位的水平与垂直分辨率 | | 方向 | 读取 EXIF 方向并自动旋正像素 | | 动画信息 | GIF 与 WebP 的帧延时、循环次数与处置方式 | | 文本块 | PNG tEXt/zTXt/iTXt 与 JPEG COM 标记 | </details> <details> <summary><b>适配器</b></summary> | 能力 | 带来的价值 | | --- | --- | | System.Drawing | 面向 Windows 旧代码的 `Bitmap` 与 `ImageFrame` 互转 | | WPF、WinUI、Avalonia | 独立包中的 UI 位图互转 | | SkiaSharp | 面向既有 Skia 技术栈的 `SKBitmap`、`SKImage` 互转 | | 内置编解码器 | JPEG、PNG、GIF、BMP、ICO、QOI、PNM 均在主包内,无第三方编解码依赖 | | VideoFrame | 视频帧适配实现在 NewLife.Video 仓库 | | Office、Cube、Vision | 文档、管理后台与视觉管线共用的像素模型 | </details> ## 生态版图 NewLife 生态按依赖分层,各项目独立版本、独立发版。下面的版图在所有 NewLife 仓库中逐字一致;每个项目链接到代码仓库与主 NuGet 包。 | 项目 | 一句话定位 | 下载量 | | --- | --- | --- | | **基础底座** | | | | [NewLife.Core](https://github.com/NewLifeX/X) | 日志、配置、缓存、网络、序列化、定时调度与 APM 追踪。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Core?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Core) | | [NewLife.XCode](https://github.com/NewLifeX/NewLife.XCode) | 数据中间件:单表百亿级、自动分表、读写分离,支持 10 多种数据库。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.XCode?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.XCode) | | [NewLife.Net](https://github.com/NewLifeX/NewLife.Net) | 高性能网络库:单机 177 万 pps、14.5 Gbps(TCP 1KB,2026-10 实测),400 万 Tcp 长连接。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Net?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Net) | | [NewLife.Remoting](https://github.com/NewLifeX/NewLife.Remoting) | 协议通信与 RPC 框架,面向 CS 应用与物联网设备。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Remoting?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Remoting) | | [NewLife.Agent](https://github.com/NewLifeX/NewLife.Agent) | 把 .NET 应用安装为操作系统守护进程:Windows 服务与 Linux systemd。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Agent?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Agent) | | [NewLife.Templates](https://github.com/NewLifeX/NewLife.Zero) | `dotnet new` 项目模板:控制台、Web、WebApi、服务、数据与物联网。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Templates?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Templates) | | **数据存储与消息** | | | | [NewLife.Redis](https://github.com/NewLifeX/NewLife.Redis) | Redis 客户端:微秒级延迟、百万级吞吐,内置消息队列。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Redis?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Redis) | | [NewLife.RocketMQ](https://github.com/NewLifeX/NewLife.RocketMQ) | 纯托管 RocketMQ 客户端,支持 Apache RocketMQ 与阿里云消息队列。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.RocketMQ?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.RocketMQ) | | [NewLife.MQTT](https://github.com/NewLifeX/NewLife.MQTT) | MQTT 客户端与服务端,客户端支持阿里云物联网。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.MQTT?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.MQTT) | | [NewLife.NovaDb](https://github.com/NewLifeX/NewLife.NovaDb) | C# 混合数据库:嵌入/网络双模,关系型、时序、消息队列与 KV 于一体。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.NovaDb?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.NovaDb) | | [NewLife.MySql](https://github.com/NewLifeX/NewLife.MySql) | MySql 驱动与数据访问辅助层,基于 NewLife 数据栈实现。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.MySql?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.MySql) | | [NewLife.TDengine](https://github.com/NewLifeX/NewLife.TDengine) | 纯托管 TDengine ADO.NET 驱动:REST、WebSocket 与原生 RPC 三种连接方式,零本机依赖。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.TDengine?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.TDengine) | | [NewLife.Presto](https://github.com/NewLifeX/NewLife.Presto) | 纯 C# Presto/Trino ADO.NET 驱动,零第三方依赖,支持 XCode ORM 集成。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Presto?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Presto) | | **Web 与分布式** | | | | [NewLife.Cube](https://github.com/NewLifeX/NewLife.Cube) | 魔方快速开发平台:用户权限、SSO、OAuth 服务端与 CRUD 脚手架。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Cube?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Cube) | | [NewLife.Cube.React](https://github.com/NewLifeX/NewLife.Cube.React) | 魔方前后端分离示例:WebAPI 后端 + Swagger + React/Vue/Blazor 前端。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Cube.React?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Cube.React) | | [Stardust](https://github.com/NewLifeX/Stardust) | 星尘分布式服务平台:节点管理、APM、配置中心、注册中心与发布中心。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Stardust?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Stardust) | | [AntJob](https://github.com/NewLifeX/AntJob) | 蚂蚁调度:分布式任务与实时数据平台,支持分片、重试与回溯补算。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.AntJob?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.AntJob) | | **AI 与视觉** | | | | [NewLife.AI](https://github.com/NewLifeX/NewLife.AI) | 统一接入 46 家大模型服务商,附带开箱即用的 ChatAI Web 对话应用。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.AI?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.AI) | | [NewLife.Imaging](https://github.com/NewLifeX/NewLife.Imaging) | 纯托管图像基础库:像素模型、编解码契约、绘制与元数据,零原生依赖。 | — | | [NewLife.Vision](https://github.com/NewLifeX/NewLife.Vision) | 视觉算法库:OCR、条码、目标检测与人脸识别,构建在 NewLife.Imaging 之上。 | — | | [NewLife.ML](https://github.com/NewLifeX/NewLife.ML) | 面向 .NET 的表格机器学习:把数据库表与 Excel 变成可部署的预测与分类模型。 | — | | **工业与物联网** | | | | [NewLife.IoT](https://github.com/NewLifeX/NewLife.IoT) | IoT 标准库,定义物联网通信协议契约与设备抽象。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.IoT?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.IoT) | | [NewLife.Modbus](https://github.com/NewLifeX/NewLife.Modbus) | Modbus TCP/RTU/ASCII,基于 NewLife.IoT 实现。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Modbus?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Modbus) | | [NewLife.Siemens](https://github.com/NewLifeX/NewLife.Siemens) | 西门子 PLC 协议,基于 NewLife.IoT 实现。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Siemens?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Siemens) | | [NewLife.Omron](https://github.com/NewLifeX/NewLife.Omron) | 欧姆龙 PLC 协议,基于 NewLife.IoT 实现。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Omron?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Omron) | | [NewLife.Melsec](https://github.com/NewLifeX/NewLife.Melsec) | 三菱 Melsec PLC 协议,基于 NewLife.IoT 实现。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Melsec?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Melsec) | | [NewLife.Schneider](https://github.com/NewLifeX/NewLife.Schneider) | 施耐德 PLC 通信驱动,基于 Modbus TCP。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Schneider?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Schneider) | | [NewLife.OPC](https://github.com/NewLifeX/NewLife.OPC) | OPC 客户端,用于工业数据采集。 | — | | [NewLife.BACnet](https://github.com/NewLifeX/NewLife.BACnet) | BACnet 楼宇自控协议栈。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.BACnet?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.BACnet) | | [NewLife.LoRa](https://github.com/NewLifeX/NewLife.LoRa) | 超低功耗物联网远程通信协议 LoRaWAN。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.LoRa?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.LoRa) | | [ZeroIoT](https://github.com/NewLifeX/ZeroIoT) | 开源轻量级 IoT 平台,含网关与设备管理。 | — | | **车联网** | | | | [NewLife.JT808](https://github.com/NewLifeX/NewLife.JT808) | JT/T 808 车辆定位协议:70+ 消息体,覆盖 2011/2013/2019 三个版本。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.JT808?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.JT808) | | [NewLife.JT809](https://github.com/NewLifeX/NewLife.JT809) | JT/T 809 部标平台互联协议,面向运输管理部门。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.JT809?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.JT809) | | [NewLife.JT1078](https://github.com/NewLifeX/NewLife.JT1078) | JT/T 1078 车载视频:RTP 解析、FLV/fMP4 转封装与直播推送。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.JT1078?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.JT1078) | | **领域组件** | | | | [NewLife.Office](https://github.com/NewLifeX/NewLife.Office) | 一个包覆盖 Excel、Word、PPT、PDF 等 15+ 文档格式。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Office?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Office) | | [NewLife.Audio](https://github.com/NewLifeX/NewLife.Audio) | 跨平台音频:编解码、设备 IO、DSP、容器与流式处理。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Audio?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Audio) | | [NewLife.Video](https://github.com/NewLifeX/NewLife.Video) | 视频编解码、封装格式、帧处理与流媒体。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Video?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Video) | | [NewLife.Map](https://github.com/NewLifeX/NewLife.Map) | 百度/高德/腾讯/天地图统一接口,支持地理编码与坐标转换。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Map?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Map) | | [NewLife.IP](https://github.com/NewLifeX/NewLife.IP) | IPv4 归属地:离线内存映射库 + 在线 API 双源。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.IP?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.IP) | | [NewLife.Holiday](https://github.com/NewLifeX/NewLife.Holiday) | 中国假期识别库:内置每年假期与调休数据,支持农历节日,完全离线。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.Holiday?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.Holiday) | | **工具与产品** | | | | [CrazyCoder](https://github.com/NewLifeX/XCoder) | 码神工具:网络、串口、加解密、正则、Modbus 与 MQTT。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.XCoder?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.XCoder) | | [NewLife.UnitTest](https://github.com/NewLifeX/NewLife.UnitTest) | 单元测试扩展库:测试基类、数据驱动与依赖注入辅助。 | [![NuGet](https://img.shields.io/nuget/dt/NewLife.UnitTest?style=flat-square&logo=nuget&label=downloads)](https://www.nuget.org/packages/NewLife.UnitTest) | | [GitCandy](https://github.com/NewLifeX/GitCandy) | 自托管 Git 源代码管理系统。 | — | | [LuckyClover](https://github.com/NewLifeX/LuckyClover) | 从低版本宿主启动时,自动安装匹配的 .NET 运行时。 | — | > 徽章取各项目主包;主题包、扩展包与卫星包见对应 NuGet 页面。未在表中列出的 30 多个包(FTP、Office 扩展、各类协议驱动等)见 [NewLifeX 组织](https://github.com/NewLifeX) 与 [newlifex.com](https://newlifex.com)。 ## 文档与示例 | 文档 | 说明 | | --- | --- | | [需求文档](/NewLife/NewLife.Imaging/Blob/master/Doc/需求文档.md) | 愿景、核心目标与模块划分 | | [功能清单](/NewLife/NewLife.Imaging/Blob/master/Doc/模块清单.md) | 实现、测试与注释三维状态 | | [架构设计](/NewLife/NewLife.Imaging/Blob/master/Doc/架构设计.md) | 工程结构、边界与关键设计决策 | | [竞品分析](/NewLife/NewLife.Imaging/Blob/master/Doc/竞品分析.md) | 与 ImageSharp、SkiaSharp、Magick.NET 等方案对比 | | [使用规范](/NewLife/NewLife.Imaging/Blob/master/Doc/使用规范.md) | 面向 Office / Cube / Vision 等上层库的接入约定 | | [更新记录](/NewLife/NewLife.Imaging/Blob/master/Doc/ChangeLog.md) | 版本发布历史 | | [示例](/NewLife/NewLife.Imaging/Blob/master/Samples/ImagingDemo) | 可运行的控制台示例 | ## 参与贡献 欢迎提交 Issue 与 Pull Request。提交前请先执行与 CI 相同的检查: ```bash dotnet build -c Release dotnet test -c Release pwsh -File Tools/Scripts/check-readmes.ps1 ``` ## 许可证 [MIT 许可证](/NewLife/NewLife.Imaging/Blob/master/LICENSE)