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); }); }
public RenderEngine(RequestInformationDelegate requestInformationDelegate) { _requestInformationDelegate = requestInformationDelegate; Windows = new List <WindowRenderInfo>(); _updateReceivedAutoResetEvent = new AutoResetEvent(false); }