Esempio n. 1
0
        private ImageObjectShapeModel GetUIRectangleScreenLocationAndDimensions(System.Windows.Shapes.Rectangle uiRectangle)
        {
            var imageLocation = uiRectangle.PointToScreen(new Point());

            return(new ImageObjectShapeModel()
            {
                LocationX = (int)imageLocation.X,
                LocationY = (int)imageLocation.Y,
                Height = (int)uiRectangle.Height,
                Width = (int)uiRectangle.Width
            });
        }