Beispiel #1
0
        private void SetupOverlay(TIS.Imaging.OverlayBitmap ob)
        {
            // Enable the overlay bitmap for drawing.
            ob.Enable = true;

            // Set magenta as dropout color.
            ob.DropOutColor = Color.Magenta;

            // Fill the overlay bitmap with the dropout color.
            ob.Fill(ob.DropOutColor);

            // Print text in red.
            ob.FontTransparent = true;
            ob.DrawText(Color.Gray, 10, 10, "Graph Measurement");
        }
Beispiel #2
0
        private void SetOverlay()
        {
            IcCam.LiveCaptureContinuous = true;
            TIS.Imaging.OverlayBitmap ob = IcCam.OverlayBitmapAtPath[PathPositions.Display];
            // Enable the overlay bitmap for drawing.
            ob.Enable = true;

            // Set magenta as dropout color.
            ob.DropOutColor = Color.Magenta;

            // Fill the overlay bitmap with the dropout color.
            ob.Fill(ob.DropOutColor);
            ob.FontTransparent = true;
            ob.DrawText(Color.Red, 10, 10, "Copyright trademark incorporated all rights reserved");
            ob.DrawFrameRect(Color.Red, IcCam.Width / 2 - 40, IcCam.Height / 2 - 40, IcCam.Width / 2 + 40, IcCam.Height / 2 + 40);
            ob.DrawLine(Color.Red, IcCam.Width / 2, IcCam.Height / 2 - 40, IcCam.Width / 2, 0);
            ob.DrawLine(Color.Red, IcCam.Width / 2, IcCam.Height / 2 + 40, IcCam.Width / 2, IcCam.Height);

            ob.DrawLine(Color.Red, 0, IcCam.Height / 2, IcCam.Width / 2 - 40, IcCam.Height / 2);
            ob.DrawLine(Color.Red, IcCam.Width / 2 + 40, IcCam.Height / 2, IcCam.Width, IcCam.Height / 2);
            ob.DrawLine(Color.Red, IcCam.Width / 2 - 10, IcCam.Height / 2, IcCam.Width / 2 + 10, IcCam.Height / 2);
            ob.DrawLine(Color.Red, IcCam.Width / 2, IcCam.Height / 2 + 10, IcCam.Width / 2, IcCam.Height / 2 - 10);
        }