示例#1
0
        /// <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);
            }
        }
示例#2
0
        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);
        }
示例#3
0
 /// <summary/>
 public override void Dispose()
 {
     RenderingTest.Invoke(DispatcherPriority.Normal, Dispose, null);
 }
示例#4
0
 /// <summary/>
 public void SetBackgroundColor(Color c)
 {
     RenderingTest.Invoke(DispatcherPriority.Normal, SetBackgroundDelegate, c);
 }