Beispiel #1
0
            public CrossHair(IImageBox imageBox, SpatialLocatorTool spatialLocatorTool)
            {
                ImageBox            = imageBox;
                _spatialLocatorTool = spatialLocatorTool;

                _crosshairGraphic          = new CrosshairGraphic();
                _crosshairGraphic.Drawing += OnGraphicDrawing;
            }
Beispiel #2
0
            public void Dispose()
            {
                if (_crosshairGraphic != null)
                {
                    _crosshairGraphic.Drawing -= OnGraphicDrawing;

                    RemoveGraphicFromCurrentImage();

                    _crosshairGraphic.Dispose();
                    _crosshairGraphic = null;
                }
            }