Esempio n. 1
0
        public void CloseFigureWithCubicBezier(Point q, Point r, int figureIndex)
        {
            PathFigureEditor pathFigureEditor = this.CreatePathFigureEditor(figureIndex);

            if (!PathFigureUtilities.IsOpen(pathFigureEditor.PathFigure))
            {
                throw new InvalidOperationException(ExceptionStringTable.FigureMustBeOpenToAppendACubicCurve);
            }
            pathFigureEditor.CubicCurveToAndCloseFigure(q, r);
        }