Exemplo n.º 1
0
        /// <summary>
        /// 开始执行绘制初始化
        /// </summary>
        /// <param name="GeometryType"></param>
        /// <param name="beginPoint"></param>
        /// <returns></returns>
        public PaintResult BeginPaint(PaintContext context, Point beginPoint)
        {
            if (context == null || context.PaintTool == null)
            {
                return new PaintResult()
                       {
                           PaintLayerType = PaintLayerType.None
                       }
            }
            ;

            _paintTool = context.PaintTool;

            return(context.PaintTool.BeginPaint(context, beginPoint));
        }