Esempio n. 1
0
        protected override void FinishDrawing()
        {
            var rect = GetNormalRectangle(_Points[0].LayerCoordinates, _Points[1].LayerCoordinates);
            var go   = new RegularPolygon(_grac.Doc.GetPropertyContext());

            go.SetParentSize(_grac.ActiveLayer.Size, false);
            go.SetRelativeSizePositionFromAbsoluteValues(rect.Size, rect.LeftTop);

            // deselect the text tool
            _grac.SetGraphToolFromInternal(GraphToolType.ObjectPointer);
            _grac.ActiveLayer.GraphObjects.Add(go);
        }