ColorVision.ImageEditor 1.3.8.3

There is a newer version of this package available.
See the version list below for details.
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.4.1.1 82 2/3/2026
1.3.10.1 93 1/14/2026
1.3.9.8 92 1/14/2026
1.3.9.7 102 1/2/2026
1.3.9.6 140 12/12/2025
1.3.9.5 452 12/9/2025
1.3.9.4 677 12/1/2025
1.3.9.3 204 11/25/2025
1.3.9.2 209 11/22/2025
1.3.9.1 261 11/16/2025
1.3.8.11 242 11/12/2025
1.3.8.10 98 11/1/2025
1.3.8.9 161 10/27/2025
1.3.8.8 151 10/22/2025
1.3.8.7 158 10/6/2025
1.3.8.4 150 10/4/2025
1.3.8.3 154 9/30/2025
1.3.8.2 145 9/29/2025
1.3.8.1 156 9/25/2025
1.3.7.3 156 9/23/2025
1.3.7.2 196 9/22/2025
1.3.7.1 179 9/21/2025
1.3.6.11 293 9/16/2025
1.3.6.10 279 9/16/2025
1.3.6.9 287 9/16/2025
1.3.6.8 281 9/15/2025
1.3.6.7 197 9/11/2025
1.3.6.6 200 9/10/2025
1.3.6.5 197 9/9/2025
1.3.6.4 194 9/8/2025
1.3.6.3 196 9/8/2025
1.3.6.2 200 9/7/2025
1.3.6.1 179 9/5/2025
1.3.5.6 213 9/4/2025
1.3.5.5 211 8/31/2025
1.3.5.4 213 8/30/2025
1.3.5.3 224 8/29/2025
1.3.5.2 248 8/26/2025
1.3.5.1 268 8/24/2025
1.3.3.8 206 8/14/2025
1.3.3.7 517 7/24/2025
1.3.3.5 542 7/21/2025
1.3.3.4 185 7/17/2025
1.3.3.3 201 7/16/2025
1.3.3.1 199 7/15/2025
1.3.2.2 192 6/23/2025
1.3.2.1 206 6/2/2025
1.3.1.1 208 5/29/2025
1.2.4.1 234 5/26/2025
1.2.3.1 217 5/19/2025
1.2.1.1 232 5/6/2025
1.1.12.2 262 4/9/2025
1.1.12.1 218 3/31/2025
1.1.11.5 217 3/20/2025
1.1.11.4 207 3/13/2025
1.1.11.3 244 3/11/2025
1.1.11.2 270 3/5/2025
1.1.11.1 230 3/3/2025
1.1.10.7 211 2/21/2025
1.1.10.6 190 2/20/2025
1.1.10.5 196 2/14/2025
1.1.10.3 199 2/12/2025
1.1.10.2 173 2/12/2025
1.1.10.1 160 2/11/2025
1.1.9.32 179 2/8/2025
1.1.9.31 165 2/7/2025
1.1.9.30 173 2/7/2025
1.1.9.28 167 2/6/2025
1.1.9.27 190 2/6/2025
1.1.9.26 189 2/5/2025
1.1.9.25 204 1/24/2025
1.1.9.24 168 1/22/2025
1.1.9.23 168 1/21/2025
1.1.9.22 175 1/21/2025
1.1.9.21 172 1/21/2025
1.1.9.20 201 1/20/2025
1.1.9.19 164 1/17/2025
1.1.9.18 134 1/15/2025
1.1.9.17 133 1/14/2025
1.1.9.16 133 1/14/2025
1.1.9.15 144 1/13/2025
1.1.9.14 140 1/13/2025
1.1.9.13 146 1/13/2025
1.1.9.12 171 1/13/2025
1.1.9.11 143 1/13/2025
1.1.9.10 155 1/13/2025
1.1.9.8 143 1/13/2025
1.1.9.7 165 1/10/2025
1.1.9.6 142 1/8/2025
1.1.9.5 151 1/8/2025
1.1.9.4 170 1/6/2025
1.1.9.3 179 1/6/2025