private void StartDrawingRectROI() { ROIRect rectROI = new ROIRect(); ROIList.Add(rectROI); rectROI.TopLeftPoint = rectROI.BottomRightPoint = MousePosition; rectROI.CaptureMouse(); rectROI.CurrentState = State.DrawingInProgress; rectROI.LastROIDrawEvent += OnGetLastDrawEventUpdated; SetBinding(MagnificationProperty.Name, rectROI, ROI.MagnificationProperty); }
private void StartDrawingOvalROI() { ROIOval ovalROI = new ROIOval(); ROIList.Add(ovalROI); ovalROI.Center = MousePosition; ovalROI.CaptureMouse(); ovalROI.CurrentState = State.DrawingInProgress; ovalROI.LastROIDrawEvent += OnGetLastDrawEventUpdated; SetBinding(MagnificationProperty.Name, ovalROI, ROI.MagnificationProperty); }
private void StartDrawingLineROI() { ROILine lineROI = new ROILine(); ROIList.Add(lineROI); lineROI.EndPoint = lineROI.StartPoint = MousePosition; lineROI.CaptureMouse(); lineROI.CurrentState = State.DrawingInProgress; lineROI.LastROIDrawEvent += OnGetLastDrawEventUpdated; SetBinding(MagnificationProperty.Name, lineROI, ROI.MagnificationProperty); }