Пример #1
0
        public override void Enlarge()
        {
            var points = PolygonHlp.GetEnlargedPolygon(new List <PointF>()
            {
                this.Point1, this.Point2, this.Point3
            }, -1F);

            this.Point1 = points[0];
            this.Point2 = points[1];
            this.Point3 = points[2];
        }
Пример #2
0
        public override void Shrink()
        {
            var points = PolygonHlp.GetEnlargedPolygon(new List <PointF>()
            {
                this.Point1, this.Point2, this.Point3, this.Point4
            }, 1F);

            this.Point1 = points[0];
            this.Point2 = points[1];
            this.Point3 = points[2];
            this.Point4 = points[3];
        }