Beispiel #1
0
 private void PanelMainFrame_MouseMove(object sender, MouseEventArgs e)
 {
     if (true == bBtnDown)
     {
         if (null != curStroke)
         {
             curStroke.Add(new CJPoint((double)e.X / this.Width, (double)e.Y / this.Height));
             formAnnotationOld.DrawFrames();
             this.Refresh();
         }
     }
 }
Beispiel #2
0
        private void PanelMainFrame_MouseDown(object sender, MouseEventArgs e)
        {
            bBtnDown = true;

            if (null == curAnno)
            {
                curAnno            = new Annotation();
                curAnno.StartFrame = CurFrameNum;
                curAnno.EndFrame   = int.MaxValue;
                ListAnnos.Add(curAnno);
            }
            curStroke = new CJStroke();
            // todo
            curStroke.color    = formAnnotationOld.GetPenColor();
            curStroke.penWidth = (float)formAnnotationOld.GetPenWidth();
            curStroke.Add(new CJPoint((double)e.X / this.Width, (double)e.Y / this.Height));
            curAnno.Add(curStroke);
        }