/// <summary/> protected RenderingWindow(Variation v) { variation = v; photographer = new Photographer(); RenderingTest.Invoke(DispatcherPriority.Normal, CreateWindow, null); // If the window position is not valid, that means the system placed it somewhere on the primary display. // (0,0) will get us the primary display. Point windowPosition = v.IsWindowPositionValid ? v.WindowPosition : new Point(0, 0); ColorOperations.DiscoverBitDepth(windowPosition); if (v.RenderingMode != null) { RenderingTest.Invoke(DispatcherPriority.Normal, SetRenderingMode, v.RenderingMode); } }
internal CoreGraphicsTest CreateTest() { CoreGraphicsTest test = (CoreGraphicsTest)Activator.CreateInstance(testType, null); if (test == null) { throw new ApplicationException("Could not create test class: " + testClass); } if (test is RenderingTest) { RenderingTest.Invoke(DispatcherPriority.Send, InitRenderingTest, test); } else { test.Init(this); } return(test); }
/// <summary/> public override void Dispose() { RenderingTest.Invoke(DispatcherPriority.Normal, Dispose, null); }
/// <summary/> public void SetBackgroundColor(Color c) { RenderingTest.Invoke(DispatcherPriority.Normal, SetBackgroundDelegate, c); }