Beispiel #1
0
 static DaVinciAPI.ActionDotInfo getCopiedDotInfo(ref DaVinciAPI.ActionDotInfo dot)
 {
     DaVinciAPI.ActionDotInfo dotRtn;
     dotRtn.coorX       = dot.coorX;
     dotRtn.coorY       = dot.coorY;
     dotRtn.orientation = dot.orientation;
     return(dotRtn);
 }
Beispiel #2
0
        static void drawLines(ref DaVinciAPI.ActionDotInfo dot1, ref DaVinciAPI.ActionDotInfo dot2, int width, int height)
        {
            DaVinciAPI.ActionDotInfo dot1Cpy = getCopiedDotInfo(ref dot1);
            DaVinciAPI.ActionDotInfo dot2Cpy = getCopiedDotInfo(ref dot2);
            var drawBrush = new SolidBrush(Color.Red);
            var myPen     = new Pen(drawBrush, 5);

            mainWindowInst.DrawLinesOnImageBox(myPen, dot1Cpy, dot2Cpy, width, height);
        }
Beispiel #3
0
        static void drawDot(ref DaVinciAPI.ActionDotInfo dot)
        {
            var drawBrush = new SolidBrush(Color.Red);

            mainWindowInst.DrawDotOnImageBox(drawBrush, dot.coorX, dot.coorY, dot.orientation, 10);
        }