修复注释乱码
This commit is contained in:
@@ -13,7 +13,7 @@ namespace XP.ImageProcessing.RoiControl
|
||||
/// </summary>
|
||||
public class PolygonAdorner : Adorner
|
||||
{
|
||||
private List<ControlThumb> vertexThumbs = new List<ControlThumb>(); // 顶点控制�?
|
||||
private List<ControlThumb> vertexThumbs = new List<ControlThumb>(); // 顶点控制点
|
||||
private VisualCollection visualChildren;
|
||||
private double scaleFactor = 1;
|
||||
private Models.PolygonROI? polygonROI;
|
||||
@@ -28,7 +28,7 @@ namespace XP.ImageProcessing.RoiControl
|
||||
// 使用ROI模型的Points数量而不是Polygon的Points
|
||||
int pointCount = polygonROI?.Points.Count ?? 0;
|
||||
|
||||
// 创建顶点控制�?
|
||||
// 创建顶点控制点
|
||||
for (int i = 0; i < pointCount; i++)
|
||||
{
|
||||
var thumb = new ControlThumb();
|
||||
@@ -80,7 +80,7 @@ namespace XP.ImageProcessing.RoiControl
|
||||
|
||||
private void HandleRightClick(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
// 右键删除顶点(至少保�?个顶点)
|
||||
// 右键删除顶点(至少保留3个顶点)
|
||||
if (polygonROI != null && polygonROI.Points.Count > 3)
|
||||
{
|
||||
Thumb? hitThumb = sender as Thumb;
|
||||
@@ -104,7 +104,7 @@ namespace XP.ImageProcessing.RoiControl
|
||||
{
|
||||
double thumbSize = 12 * scaleFactor;
|
||||
|
||||
// 布局顶点控制�?
|
||||
// 布局顶点控制点
|
||||
for (int i = 0; i < vertexThumbs.Count && i < polygonROI.Points.Count; i++)
|
||||
{
|
||||
vertexThumbs[i].Arrange(new Rect(
|
||||
|
||||
Reference in New Issue
Block a user