Example #1
0
 public void DrawLineROI(double row1 = 100, double col1 = 100, double row2 = 100, double col2 = 200)
 {
     if (bDrawing)
     {
         MessageHelper.ShowWarning("显示界面正在进行ROI操作!");
         return;
     }
     if (Image == null)
     {
         return;
     }
     if (line == null)
     {
         line = new DrawLine(Window, Image, row1, col1, row2, col2);
     }
     else
     {
         line.Row1 = row1;
         line.Col1 = col1;
         line.Row2 = row2;
         line.Col2 = col2;
     }
     bDrawing     = true;
     DrawingShape = ROIShape.Line;
     BindingLineROIEvent();
     line.CreateROI();
 }