コード例 #1
0
        //public EdgePoints()
        //{
        //    TopLeft = new Point();
        //    TopRight = new Point();
        //    BottomLeft = new Point();
        //    BottomRight = new Point();

        //    Bounds = Rectangle.Empty;
        //}

        public EdgePoints(EdgePoints edgePoints)
        {
            TopLeft     = edgePoints.TopLeft;
            TopRight    = edgePoints.TopRight;
            BottomLeft  = edgePoints.BottomLeft;
            BottomRight = edgePoints.BottomRight;

            Bounds = edgePoints.Bounds;
        }
コード例 #2
0
        public EdgePoints ZoomIn(double scale)
        {
            var result = new EdgePoints(Bounds)
            {
                TopLeft     = new Point(TopLeft.X / scale, TopLeft.Y / scale),
                TopRight    = new Point(TopRight.X / scale, TopRight.Y / scale),
                BottomLeft  = new Point(BottomLeft.X / scale, BottomLeft.Y / scale),
                BottomRight = new Point(BottomRight.X / scale, BottomRight.Y / scale)
            };

            return(result);
        }