ColorVision.ImageEditor 1.3.8.7

dotnet add package ColorVision.ImageEditor --version 1.3.8.7
                    
NuGet\Install-Package ColorVision.ImageEditor -Version 1.3.8.7
                    
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.7" />
                    
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.7" />
                    
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.7
                    
#r "nuget: ColorVision.ImageEditor, 1.3.8.7"
                    
#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.7
                    
#: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.7
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.ImageEditor&version=1.3.8.7
                    
Install as a Cake Tool

ColorVision.ImageEditor

版本: 1.3.8.5 | 目标框架: .NET 8.0 / .NET 6.0 Windows | UI框架: WPF

🎯 功能定位

专业图像编辑和标注控件库,提供完整的图像显示、编辑、标注和保存功能。支持RGB48高位深图像、矢量绘图、3D可视化和CIE色彩空间分析。

作用范围

图像处理UI层,为应用程序提供强大的图像查看和编辑能力,是ColorVision平台的核心可视化组件。

主要功能点

图像显示

  • 多格式支持 - 支持常见图像格式(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

主图像视图控件,提供图像显示和基础操作。支持缩放、平移、全屏等功能。

DrawCanvas

基于WPF的DrawingVisual实现的高性能图形渲染系统,支持撤销/重做、图层管理等。

图形元素类

  • DrawingRectangle - 矩形图形绘制
  • DrawingCircle - 圆形和椭圆图形
  • DrawingLine - 直线和折线
  • DrawingText - 文本标注和说明
  • DrawingBezier - 贝塞尔曲线
  • DrawingPolygon - 多边形区域
  • DrawingRuler - 标尺和测量工具
  • DrawingSpecial - 特殊标注(POI点、十字线等)

编辑工具

  • Zoom - 缩放工具(放大、缩小、适配窗口)
  • FullScreen - 全屏显示模式
  • Rotate - 图像旋转功能
  • AppCommand - 应用程序命令集成

开发调试

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

目录说明

  • Draw/ - 绘图工具和图形元素核心实现
    • Rectangle/ - 矩形绘制组件
    • Circle/ - 圆形绘制组件
    • Line/ - 线条绘制组件
    • Text/ - 文本标注组件
    • Polygon/ - 多边形组件
    • BezierCurve/ - 贝塞尔曲线组件
    • Ruler/ - 标尺和测量工具
    • Special/ - 特殊标注组件
  • EditorTools/ - 编辑工具集
    • Zoom/ - 缩放工具
    • FullScreen/ - 全屏模式
    • Rotate/ - 旋转工具
    • AppCommand/ - 命令集成
  • Assets/ - 资源文件
    • Colormaps/ - 伪彩色映射图
    • Image/ - 图标和图像资源
  • Interfaces/ - 接口定义
  • Tif/ - TIFF图像处理

性能优化

  • 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.7 0 10/6/2025
1.3.8.4 36 10/4/2025
1.3.8.3 112 9/30/2025
1.3.8.2 119 9/29/2025
1.3.8.1 124 9/25/2025
1.3.7.3 127 9/23/2025
1.3.7.2 162 9/22/2025
1.3.7.1 149 9/21/2025
1.3.6.11 256 9/16/2025
1.3.6.10 259 9/16/2025
1.3.6.9 260 9/16/2025
1.3.6.8 251 9/15/2025
1.3.6.7 161 9/11/2025
1.3.6.6 169 9/10/2025
1.3.6.5 162 9/9/2025
1.3.6.4 162 9/8/2025
1.3.6.3 162 9/8/2025
1.3.6.2 171 9/7/2025
1.3.6.1 151 9/5/2025
1.3.5.6 176 9/4/2025
1.3.5.5 173 8/31/2025
1.3.5.4 187 8/30/2025
1.3.5.3 200 8/29/2025
1.3.5.2 215 8/26/2025
1.3.5.1 234 8/24/2025
1.3.3.8 174 8/14/2025
1.3.3.7 491 7/24/2025
1.3.3.5 507 7/21/2025
1.3.3.4 166 7/17/2025
1.3.3.3 166 7/16/2025
1.3.3.1 168 7/15/2025
1.3.2.2 165 6/23/2025
1.3.2.1 180 6/2/2025
1.3.1.1 177 5/29/2025
1.2.4.1 195 5/26/2025
1.2.3.1 178 5/19/2025
1.2.1.1 191 5/6/2025
1.1.12.2 221 4/9/2025
1.1.12.1 195 3/31/2025
1.1.11.5 187 3/20/2025
1.1.11.4 182 3/13/2025
1.1.11.3 207 3/11/2025
1.1.11.2 242 3/5/2025
1.1.11.1 194 3/3/2025
1.1.10.7 168 2/21/2025
1.1.10.6 159 2/20/2025
1.1.10.5 158 2/14/2025
1.1.10.3 156 2/12/2025
1.1.10.2 142 2/12/2025
1.1.10.1 129 2/11/2025
1.1.9.32 154 2/8/2025
1.1.9.31 139 2/7/2025
1.1.9.30 137 2/7/2025
1.1.9.28 138 2/6/2025
1.1.9.27 159 2/6/2025
1.1.9.26 158 2/5/2025
1.1.9.25 164 1/24/2025
1.1.9.24 139 1/22/2025
1.1.9.23 139 1/21/2025
1.1.9.22 149 1/21/2025
1.1.9.21 133 1/21/2025
1.1.9.20 162 1/20/2025
1.1.9.19 138 1/17/2025
1.1.9.18 108 1/15/2025
1.1.9.17 103 1/14/2025
1.1.9.16 102 1/14/2025
1.1.9.15 122 1/13/2025
1.1.9.14 114 1/13/2025
1.1.9.13 115 1/13/2025
1.1.9.12 132 1/13/2025
1.1.9.11 115 1/13/2025
1.1.9.10 123 1/13/2025
1.1.9.8 116 1/13/2025
1.1.9.7 138 1/10/2025
1.1.9.6 113 1/8/2025
1.1.9.5 126 1/8/2025
1.1.9.4 139 1/6/2025
1.1.9.3 148 1/6/2025