Пример #1
0
 public void Render(List <Strokedata> strokelist, Strokedata stroke)
 {
     Cleancanvas();
     _swapchain.Present(0, PresentFlags.None);
     Pointtrace.ClearAll();
     Tooltype.type = Tooltype.lasttype;
 }
Пример #2
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     base.OnMouseUp(e);
     //click down the left button
     if ((e.Button & MouseButtons.Left) != 0)
     {
         Pointtrace.AddPoint(((float)(2 * e.X - this.Width)) / this.Width, (float)(this.Height - 2 * e.Y) / this.Height);
         Pointtrace.Pressup();
     }
 }
Пример #3
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);

            if (Pointtrace.Flag == 1)
            {
                if (Tooltype.IsChalkorEra())
                {
                    Pointtrace.AddPoint(((float)(2 * e.X - this.Width)) / this.Width, (float)(this.Height - 2 * e.Y) / this.Height);
                }
            }
        }