合并图像处理库,删除图像lib库

This commit is contained in:
李伟
2026-04-13 13:40:37 +08:00
parent 2a762396d5
commit c7ce4ea6a1
105 changed files with 16341 additions and 133 deletions
+43
View File
@@ -0,0 +1,43 @@
using System;
using System.Windows;
using System.Windows.Controls.Primitives;
namespace ImageROIControl
{
/// <summary>
/// ROI控制点
/// </summary>
public class ControlThumb : Thumb
{
private static readonly Style? thumbStyle;
static ControlThumb()
{
try
{
ResourceDictionary dictionary = new ResourceDictionary();
dictionary.Source = new Uri("pack://application:,,,/ImageROIControl;component/Themes/Generic.xaml", UriKind.Absolute);
thumbStyle = (Style?)dictionary["AreaControlThumbStyle"];
}
catch
{
// 如果样式加载失败,使用默认样式
thumbStyle = null;
}
}
public ControlThumb()
{
if (thumbStyle != null)
{
Style = thumbStyle;
}
else
{
// 默认样式
Width = 12;
Height = 12;
}
}
}
}