Ejemplo n.º 1
0
        public RenderEngine(int screenWidth, int screenHeight, RequestInformationDelegate requestInformationDelegate)
        {
            ScreenWidth  = screenWidth;
            ScreenHeight = screenHeight;
            _requestInformationDelegate = requestInformationDelegate;
            Windows = new List <WindowRenderInfo>();
            _updateReceivedAutoResetEvent = new AutoResetEvent(false);

            Application.Current.Dispatcher.Invoke(() =>
            {
                WriteableBitmap = new WriteableBitmap(screenWidth, screenHeight, 96, 96,
                                                      PixelFormats.Bgr24, null);
            });
        }
Ejemplo n.º 2
0
 public RenderEngine(RequestInformationDelegate requestInformationDelegate)
 {
     _requestInformationDelegate = requestInformationDelegate;
     Windows = new List <WindowRenderInfo>();
     _updateReceivedAutoResetEvent = new AutoResetEvent(false);
 }