public void Dispose()
        {
            if (this.Path == null)
            {
                Path   = _context.CopyPath();
                Bounds = _context.FillExtents().ToAvalonia();
            }

            _context.Dispose();
            _surf.Dispose();
        }
Esempio n. 2
0
        public void EndFigure(bool isClosed)
        {
            if (this.Path == null)
            {
                if (isClosed)
                {
                    _context.ClosePath();
                }

                Path   = _context.CopyPath();
                Bounds = _context.FillExtents().ToPerspex();
            }
        }