Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }