Ejemplo n.º 1
0
        public override void Run()
        {
            base.Run();
            logger.Info("Capturing screen");
            ICaptureAgent      captureAgent = new SimpleCaptureAgent();
            Rectangle          rect         = ApplicationWindow.ToRectangle();
            UnsafeMemoryBitmap bmp          = captureAgent.CaptureViewPort(rect.X, rect.Y, rect.Width, rect.Height);

            Console.ReadLine();
        }