예제 #1
0
        public RectangleAnnotate(RectangleAnnotateOptions options)
        {
            Options = options;

            backgroundImage           = Screenshot.CaptureFullscreen();
            borderDotPen              = new Pen(Color.Black, 1);
            borderDotPen2             = new Pen(Color.White, 1);
            borderDotPen2.DashPattern = new float[] { 5, 5 };
            rectangleInfofont         = new Font("Arial", 17, FontStyle.Bold);
            tipFont         = new Font("Arial", 13);
            penTimer        = Stopwatch.StartNew();
            ScreenRectangle = CaptureHelpers.GetScreenBounds();

            InitializeComponent();

            using (MemoryStream cursorStream = new MemoryStream(Resources.Crosshair))
            {
                Cursor = new Cursor(cursorStream);
            }

            timer = new Timer {
                Interval = 10
            };
            timer.Tick += timer_Tick;
            timer.Start();
        }
예제 #2
0
        public RectangleAnnotate(RectangleAnnotateOptions options)
        {
            Options = options;

            backgroundImage = Screenshot.CaptureFullscreen();
            borderDotPen = new Pen(Color.Black, 1);
            borderDotPen2 = new Pen(Color.White, 1);
            borderDotPen2.DashPattern = new float[] { 5, 5 };
            rectangleInfofont = new Font("Arial", 17, FontStyle.Bold);
            tipFont = new Font("Arial", 13);
            penTimer = Stopwatch.StartNew();
            ScreenRectangle = CaptureHelpers.GetScreenBounds();

            InitializeComponent();

            using (MemoryStream cursorStream = new MemoryStream(Resources.Crosshair))
            {
                Cursor = new Cursor(cursorStream);
            }

            timer = new Timer { Interval = 10 };
            timer.Tick += timer_Tick;
            timer.Start();
        }