ColorVision.ImageEditor 1.3.8.3

dotnet add package ColorVision.ImageEditor --version 1.3.8.3
                    
NuGet\Install-Package ColorVision.ImageEditor -Version 1.3.8.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ColorVision.ImageEditor" Version="1.3.8.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.ImageEditor" Version="1.3.8.3" />
                    
Directory.Packages.props
<PackageReference Include="ColorVision.ImageEditor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ColorVision.ImageEditor --version 1.3.8.3
                    
#r "nuget: ColorVision.ImageEditor, 1.3.8.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ColorVision.ImageEditor@1.3.8.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ColorVision.ImageEditor&version=1.3.8.3
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.ImageEditor&version=1.3.8.3
                    
Install as a Cake Tool

ColorVision.ImageEditor

🎯 功能定位

专业图像编辑和标注控件库,提供完整的图像显示、编辑、标注和保存功能。

作用范围

图像处理UI层,为应用程序提供强大的图像查看和编辑能力。

主要功能点

图像显示

  • 多格式支持 - 支持常见图像格式(PNG、JPG、BMP等)
  • 高位深支持 - 支持RGB48等高位深图像格式
  • 缩放和平移 - 流畅的图像缩放和平移操作
  • 自适应显示 - 自动适配窗口大小的图像显示

图像调整

  • 对比度调整 - 实时调整图像对比度
  • Gamma校正 - 支持Gamma值调整
  • 色调调整 - HSV色调、饱和度、明度调整
  • 亮度调整 - 图像亮度实时调节

图形绘制

  • 文本标注 - 在图像上添加文字说明
  • 矩形绘制 - 绘制矩形区域标注
  • 圆形绘制 - 绘制圆形区域标注
  • 直线绘制 - 绘制直线测量和标注
  • 贝塞尔曲线 - 绘制平滑的曲线
  • 多边形 - 绘制任意多边形区域

编辑功能

  • 选择模式 - 选择和移动已绘制的图形
  • 编辑模式 - 编辑图形的属性和位置
  • 删除功能 - 删除选中的图形元素
  • 撤销/重做 - 支持操作的撤销和重做
  • 右键菜单 - 便捷的右键快捷操作

图像保存

  • 保存为图片 - 将编辑结果保存为图像文件
  • 保存标注 - 单独保存标注数据
  • 导出功能 - 支持多种导出格式

与主程序的依赖关系

被引用方式:

  • ColorVision.Engine - 算法结果可视化展示
  • ColorVision - 图像查看和编辑功能
  • 插件和项目 - 图像分析和标注

引用的程序集:

  • ColorVision.UI - 基础UI组件
  • ColorVision.Core - C++互操作接口
  • OpenCV相关库 - 图像处理算法

使用方式

引用方式

<ProjectReference Include="..\ColorVision.ImageEditor\ColorVision.ImageEditor.csproj" />

基础使用示例

// 在XAML中使用ImageEditor控件
<imageEditor:ImageView x:Name="imageView" />

// 在代码中加载图像
imageView.LoadImage("path/to/image.png");

// 设置编辑模式
imageView.EditMode = EditMode.DrawRectangle;

// 保存编辑结果
imageView.SaveImage("path/to/output.png");

绘制图形示例

// 绘制矩形
var rect = new DrawingRectangle
{
    X = 100,
    Y = 100,
    Width = 200,
    Height = 150,
    StrokeColor = Colors.Red
};
imageView.AddDrawing(rect);

// 绘制文本
var text = new DrawingText
{
    X = 150,
    Y = 150,
    Text = "标注文字",
    FontSize = 16,
    Color = Colors.Blue
};
imageView.AddDrawing(text);

图像调整示例

// 调整对比度
imageView.AdjustContrast(1.5);

// 调整Gamma
imageView.AdjustGamma(2.2);

// 调整色调
imageView.AdjustHue(30); // 色调偏移30度

主要组件

ImageView

主图像视图控件,提供图像显示和基础操作。

DrawingVisual系统

基于WPF的DrawingVisual实现的高性能图形渲染系统。

图形元素类

  • DrawingRectangle - 矩形图形
  • DrawingCircle - 圆形图形
  • DrawingLine - 直线图形
  • DrawingText - 文本标注
  • DrawingBezier - 贝塞尔曲线
  • DrawingPolygon - 多边形

开发调试

dotnet build UI/ColorVision.ImageEditor/ColorVision.ImageEditor.csproj

目录说明

  • Controls/ - 图像编辑控件实现
  • Draw/ - 绘图工具和图形元素
  • Adorners/ - WPF装饰器实现
  • Converters/ - 图像转换器

性能优化

  • GPU加速 - 利用显卡加速图像渲染
  • 多线程处理 - 图像处理操作异步执行
  • 内存管理 - 大图像的智能内存管理
  • 渲染优化 - 仅重绘变化区域

相关文档链接

维护者

ColorVision UI团队

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ColorVision.ImageEditor:

Package Downloads
ColorVision.Solution

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.8.3 21 9/30/2025
1.3.8.2 37 9/29/2025
1.3.8.1 124 9/25/2025
1.3.7.3 126 9/23/2025
1.3.7.2 161 9/22/2025
1.3.7.1 148 9/21/2025
1.3.6.11 255 9/16/2025
1.3.6.10 258 9/16/2025
1.3.6.9 259 9/16/2025
1.3.6.8 250 9/15/2025
1.3.6.7 150 9/11/2025
1.3.6.6 159 9/10/2025
1.3.6.5 151 9/9/2025
1.3.6.4 152 9/8/2025
1.3.6.3 151 9/8/2025
1.3.6.2 161 9/7/2025
1.3.6.1 140 9/5/2025
1.3.5.6 166 9/4/2025
1.3.5.5 162 8/31/2025
1.3.5.4 175 8/30/2025
1.3.5.3 189 8/29/2025
1.3.5.2 204 8/26/2025
1.3.5.1 224 8/24/2025
1.3.3.8 163 8/14/2025
1.3.3.7 480 7/24/2025
1.3.3.5 496 7/21/2025
1.3.3.4 155 7/17/2025
1.3.3.3 156 7/16/2025
1.3.3.1 157 7/15/2025
1.3.2.2 155 6/23/2025
1.3.2.1 169 6/2/2025
1.3.1.1 166 5/29/2025
1.2.4.1 181 5/26/2025
1.2.3.1 167 5/19/2025
1.2.1.1 180 5/6/2025
1.1.12.2 208 4/9/2025
1.1.12.1 184 3/31/2025
1.1.11.5 176 3/20/2025
1.1.11.4 172 3/13/2025
1.1.11.3 197 3/11/2025
1.1.11.2 231 3/5/2025
1.1.11.1 183 3/3/2025
1.1.10.7 166 2/21/2025
1.1.10.6 148 2/20/2025
1.1.10.5 147 2/14/2025
1.1.10.3 144 2/12/2025
1.1.10.2 131 2/12/2025
1.1.10.1 128 2/11/2025
1.1.9.32 143 2/8/2025
1.1.9.31 128 2/7/2025
1.1.9.30 126 2/7/2025
1.1.9.28 128 2/6/2025
1.1.9.27 148 2/6/2025
1.1.9.26 146 2/5/2025
1.1.9.25 152 1/24/2025
1.1.9.24 128 1/22/2025
1.1.9.23 129 1/21/2025
1.1.9.22 139 1/21/2025
1.1.9.21 127 1/21/2025
1.1.9.20 151 1/20/2025
1.1.9.19 128 1/17/2025
1.1.9.18 97 1/15/2025
1.1.9.17 92 1/14/2025
1.1.9.16 91 1/14/2025
1.1.9.15 112 1/13/2025
1.1.9.14 103 1/13/2025
1.1.9.13 104 1/13/2025
1.1.9.12 120 1/13/2025
1.1.9.11 104 1/13/2025
1.1.9.10 112 1/13/2025
1.1.9.8 105 1/13/2025
1.1.9.7 124 1/10/2025
1.1.9.6 103 1/8/2025
1.1.9.5 115 1/8/2025
1.1.9.4 129 1/6/2025
1.1.9.3 135 1/6/2025